pub struct ProtectionMessageSection<'a> {
pub table_id_extension: u16,
pub version_number: u8,
pub current_next_indicator: bool,
pub section_number: u8,
pub last_section_number: u8,
pub body: ProtectionMessageBody<'a>,
}Expand description
Protection message section (TS 102 809 §9; Tables 42 / 51).
Typed fields cover the common section header; ProtectionMessageSection::body
carries the typed, discriminated body.
Fields§
§table_id_extension: u16table_id_extension — authentication_group_id for authentication
messages, trust_message_id (0x0100) for certificate collections.
version_number: u85-bit version_number.
current_next_indicator: boolcurrent_next_indicator bit (spec mandates 1).
section_number: u8section_number.
last_section_number: u8last_section_number.
body: ProtectionMessageBody<'a>Discriminated body, selected by table_id_extension.
Trait Implementations§
Source§impl<'a> Clone for ProtectionMessageSection<'a>
impl<'a> Clone for ProtectionMessageSection<'a>
Source§fn clone(&self) -> ProtectionMessageSection<'a>
fn clone(&self) -> ProtectionMessageSection<'a>
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<'a> Debug for ProtectionMessageSection<'a>
impl<'a> Debug for ProtectionMessageSection<'a>
impl<'a> Eq for ProtectionMessageSection<'a>
Source§impl<'a> From<ProtectionMessageSection<'a>> for AnyTable<'a>
impl<'a> From<ProtectionMessageSection<'a>> for AnyTable<'a>
Source§fn from(t: ProtectionMessageSection<'a>) -> Self
fn from(t: ProtectionMessageSection<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for ProtectionMessageSection<'a>
impl<'a> Parse<'a> for ProtectionMessageSection<'a>
Source§impl<'a> PartialEq for ProtectionMessageSection<'a>
impl<'a> PartialEq for ProtectionMessageSection<'a>
Source§fn eq(&self, other: &ProtectionMessageSection<'a>) -> bool
fn eq(&self, other: &ProtectionMessageSection<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProtectionMessageSection<'_>
impl Serialize for ProtectionMessageSection<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.Source§impl<'a> Serialize for ProtectionMessageSection<'a>
impl<'a> Serialize for ProtectionMessageSection<'a>
impl<'a> StructuralPartialEq for ProtectionMessageSection<'a>
Source§impl<'a> Table<'a> for ProtectionMessageSection<'a>
impl<'a> Table<'a> for ProtectionMessageSection<'a>
Source§impl<'a> TableDef<'a> for ProtectionMessageSection<'a>
impl<'a> TableDef<'a> for ProtectionMessageSection<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProtectionMessageSection<'a>
impl<'a> RefUnwindSafe for ProtectionMessageSection<'a>
impl<'a> Send for ProtectionMessageSection<'a>
impl<'a> Sync for ProtectionMessageSection<'a>
impl<'a> Unpin for ProtectionMessageSection<'a>
impl<'a> UnsafeUnpin for ProtectionMessageSection<'a>
impl<'a> UnwindSafe for ProtectionMessageSection<'a>
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