pub struct Trailer {
pub checksum: Option<String>,
pub test_and_training: Option<bool>,
pub possible_duplicate_emission: Option<PossibleDuplicateEmission>,
pub delayed_message: Option<bool>,
pub message_reference: Option<MessageReference>,
pub possible_duplicate_message: Option<PossibleDuplicateMessage>,
pub system_originated_message: Option<SystemOriginatedMessage>,
pub mac: Option<String>,
}
Expand description
Block 5: Trailer
Security and control information for message integrity and authentication.
Format: {5:{tag:value}{tag:value}...}
Key Tags:
- CHK: Checksum (12 hex chars) - Mandatory for integrity validation
- MAC: Message Authentication Code - Optional bilateral authentication
- TNG: Test and Training flag - Identifies test messages
- PDM/PDE: Possible duplicate detection tags
- DLM: Delayed message indicator
Fields§
§checksum: Option<String>
CHK - Checksum (12!h) - Mandatory
test_and_training: Option<bool>
TNG - Test & Training Message - Optional (empty tag)
possible_duplicate_emission: Option<PossibleDuplicateEmission>
PDE - Possible Duplicate Emission - Optional
delayed_message: Option<bool>
DLM - Delayed Message - Optional (empty tag)
message_reference: Option<MessageReference>
MRF - Message Reference - Optional
possible_duplicate_message: Option<PossibleDuplicateMessage>
PDM - Possible Duplicate Message - Optional
system_originated_message: Option<SystemOriginatedMessage>
SYS - System Originated Message - Optional
mac: Option<String>
MAC - Message Authentication Code - Optional
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Trailer
impl<'de> Deserialize<'de> for Trailer
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 StructuralPartialEq for Trailer
Auto Trait Implementations§
impl Freeze for Trailer
impl RefUnwindSafe for Trailer
impl Send for Trailer
impl Sync for Trailer
impl Unpin for Trailer
impl UnwindSafe for Trailer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more