pub enum PidValidationError {
MissingEntity {
entity: String,
ahb_status: String,
severity: Severity,
},
MissingField {
entity: String,
field: String,
ahb_status: String,
rust_type: Option<String>,
valid_values: Vec<(String, String)>,
severity: Severity,
},
InvalidCode {
entity: String,
field: String,
value: String,
valid_values: Vec<(String, String)>,
},
}Expand description
A single PID validation error.
Variants§
MissingEntity
An entire entity is missing from the interchange.
MissingField
A required field is None/missing.
Fields
InvalidCode
A code field has a value not in the allowed set.
Implementations§
Trait Implementations§
Source§impl Clone for PidValidationError
impl Clone for PidValidationError
Source§fn clone(&self) -> PidValidationError
fn clone(&self) -> PidValidationError
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 PidValidationError
impl Debug for PidValidationError
Auto Trait Implementations§
impl Freeze for PidValidationError
impl RefUnwindSafe for PidValidationError
impl Send for PidValidationError
impl Sync for PidValidationError
impl Unpin for PidValidationError
impl UnsafeUnpin for PidValidationError
impl UnwindSafe for PidValidationError
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