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)>,
},
NotAllowed {
entity: String,
field: String,
value: Option<String>,
ahb_status: String,
severity: Severity,
},
}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.
NotAllowed
Something is present although its condition does not hold: an entity
(field empty), a code (value) or a list element. Only a
condition-aware validator raises it, for a Muss/X status with a
condition that evaluates to false where the element sits. A warning for
now, while the check proves itself on real messages.
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 (const: unstable) · 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