pub struct EventValidationConfig {
pub received_at: Option<DateTime<Utc>>,
pub max_secs_in_past: Option<i64>,
pub max_secs_in_future: Option<i64>,
pub is_validated: bool,
}
Expand description
Configuration for validate_event_timestamps
.
Fields§
§received_at: Option<DateTime<Utc>>
The time at which the event was received in this Relay.
This timestamp is persisted into the event payload.
max_secs_in_past: Option<i64>
The maximum amount of seconds an event can be dated in the past.
If the event’s timestamp is older, the received timestamp is assumed.
max_secs_in_future: Option<i64>
The maximum amount of seconds an event can be predated into the future.
If the event’s timestamp lies further into the future, the received timestamp is assumed.
is_validated: bool
Controls whether the event has been validated before, in which case disables validation.
By default, is_validated
is disabled and event validation is run.
Similar to is_renormalize
for normalization, sentry_relay
may configure this value.
Trait Implementations§
source§impl Debug for EventValidationConfig
impl Debug for EventValidationConfig
source§impl Default for EventValidationConfig
impl Default for EventValidationConfig
source§fn default() -> EventValidationConfig
fn default() -> EventValidationConfig
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventValidationConfig
impl RefUnwindSafe for EventValidationConfig
impl Send for EventValidationConfig
impl Sync for EventValidationConfig
impl Unpin for EventValidationConfig
impl UnwindSafe for EventValidationConfig
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more