pub struct Validator {
pub registry: ExtensionRegistry,
pub limits: Limits,
}Fields§
§registry: ExtensionRegistry§limits: LimitsImplementations§
Source§impl Validator
impl Validator
pub fn new(registry: ExtensionRegistry) -> Self
pub fn validate_record(&self, record: &Record) -> Result<(), ValidationErrors>
Sourcepub fn validate_event(
&self,
event: &Event,
now: Timestamp,
) -> Result<(), ValidationErrors>
pub fn validate_event( &self, event: &Event, now: Timestamp, ) -> Result<(), ValidationErrors>
Checks on event metadata that do not depend on the record state.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Validator
impl RefUnwindSafe for Validator
impl Send for Validator
impl Sync for Validator
impl Unpin for Validator
impl UnsafeUnpin for Validator
impl UnwindSafe for Validator
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