pub struct ErcCode(/* private fields */);Expand description
A BDEW ERC error code from an inbound APERAK or CONTRL.
Wraps an arbitrary string. Use codes for known BDEW constants.
Use ErcCode::new for codes parsed from inbound EDIFACT that may not
be in the known set (e.g. proprietary NB codes).
Implements Serialize/Deserialize as a transparent JSON string so it
passes through CloudEvents payloads unchanged.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ErcCode
impl<'de> Deserialize<'de> for ErcCode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ErcCode
impl StructuralPartialEq for ErcCode
Auto Trait Implementations§
impl Freeze for ErcCode
impl RefUnwindSafe for ErcCode
impl Send for ErcCode
impl Sync for ErcCode
impl Unpin for ErcCode
impl UnsafeUnpin for ErcCode
impl UnwindSafe for ErcCode
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