Skip to main content

ErrorCodes

Struct ErrorCodes 

Source
pub struct ErrorCodes;
Expand description

Standard error codes for validation issues.

Implementations§

Source§

impl ErrorCodes

Source

pub const MISSING_MANDATORY_SEGMENT: &'static str = "STR001"

A mandatory segment is missing.

Source

pub const MAX_REPETITIONS_EXCEEDED: &'static str = "STR002"

Segment repetitions exceed the MIG MaxRep count.

Source

pub const UNEXPECTED_SEGMENT: &'static str = "STR003"

Unexpected segment found (not defined in MIG for this message type).

Source

pub const WRONG_SEGMENT_ORDER: &'static str = "STR004"

Segments are in wrong order according to the MIG.

Source

pub const MISSING_MANDATORY_GROUP: &'static str = "STR005"

A mandatory segment group is missing.

Source

pub const GROUP_MAX_REP_EXCEEDED: &'static str = "STR006"

Segment group repetitions exceed MaxRep count.

Source

pub const VALUE_TOO_LONG: &'static str = "FMT001"

Value exceeds maximum allowed length.

Source

pub const INVALID_NUMERIC_FORMAT: &'static str = "FMT002"

Value does not match required numeric format.

Source

pub const INVALID_ALPHANUMERIC_FORMAT: &'static str = "FMT003"

Value does not match required alphanumeric format.

Source

pub const INVALID_DATE_FORMAT: &'static str = "FMT004"

Invalid date/time format.

Source

pub const VALUE_TOO_SHORT: &'static str = "FMT005"

Value is shorter than minimum required length.

Source

pub const REQUIRED_ELEMENT_EMPTY: &'static str = "FMT006"

A required element is empty.

Source

pub const INVALID_CODE_VALUE: &'static str = "COD001"

Code value is not in the allowed code list for this element.

Source

pub const CODE_NOT_ALLOWED_FOR_PID: &'static str = "COD002"

Code value is not allowed for this specific Pruefidentifikator.

Source

pub const MISSING_REQUIRED_FIELD: &'static str = "AHB001"

A field required by the AHB for this PID is missing.

Source

pub const FIELD_NOT_ALLOWED_FOR_PID: &'static str = "AHB002"

A field is present but not allowed by the AHB for this PID.

Source

pub const CONDITIONAL_RULE_VIOLATION: &'static str = "AHB003"

A conditional AHB rule is violated.

Source

pub const UNKNOWN_PRUEFIDENTIFIKATOR: &'static str = "AHB004"

The Pruefidentifikator is unknown / not supported.

Source

pub const CONDITION_UNKNOWN: &'static str = "AHB005"

A condition expression could not be fully evaluated (Unknown result).

Source

pub const PACKAGE_CARDINALITY_VIOLATION: &'static str = "AHB006"

Package cardinality constraint violated: count of present codes outside [min..max].

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.