pub enum OcsfValidationError {
MissingField {
field: &'static str,
},
InvalidType {
field: &'static str,
expected: &'static str,
},
TypeUidMismatch {
expected: u64,
actual: u64,
},
InvalidSeverity {
value: u64,
},
}Expand description
Errors found during OCSF field validation.
Variants§
MissingField
A required field is missing.
InvalidType
A field has an unexpected type.
TypeUidMismatch
The type_uid does not match class_uid * 100 + activity_id.
InvalidSeverity
Severity ID out of range.
Trait Implementations§
Source§impl Clone for OcsfValidationError
impl Clone for OcsfValidationError
Source§fn clone(&self) -> OcsfValidationError
fn clone(&self) -> OcsfValidationError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OcsfValidationError
impl Debug for OcsfValidationError
Source§impl Display for OcsfValidationError
impl Display for OcsfValidationError
Source§impl Error for OcsfValidationError
impl Error for OcsfValidationError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for OcsfValidationError
impl RefUnwindSafe for OcsfValidationError
impl Send for OcsfValidationError
impl Sync for OcsfValidationError
impl Unpin for OcsfValidationError
impl UnsafeUnpin for OcsfValidationError
impl UnwindSafe for OcsfValidationError
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