pub enum ProtectionMessageBody<'a> {
AuthenticationMessage {
section_hash_algorithm_identifier: u8,
section_hash_length: u8,
signature_algorithm_identifier: u8,
hashes: Vec<SectionHashEntry<'a>>,
extension_bytes: &'a [u8],
signature_key_identifier: &'a [u8],
signature: &'a [u8],
},
CertificateCollection {
certificates: Vec<&'a [u8]>,
},
Raw(&'a [u8]),
}Expand description
Discriminated protection-message body, selected by table_id_extension.
Variants§
AuthenticationMessage
Authentication message (extension 0x0000..=0x00FF; §9.4.3 Table 42).
Fields
§
section_hash_algorithm_identifier: u8section_hash_algorithm_identifier (§9.4.3 Table 43): 0 = SHA-256, 1 = SHA-512.
§
hashes: Vec<SectionHashEntry<'a>>Section-hash loop entries in wire order.
CertificateCollection
Certificate collection message (extension 0x0100; §9.5.4.9 Table 51).
Fields
Raw(&'a [u8])
Reserved extension (0x0101..=0xFFFF) — body preserved verbatim.
Trait Implementations§
Source§impl<'a> Clone for ProtectionMessageBody<'a>
impl<'a> Clone for ProtectionMessageBody<'a>
Source§fn clone(&self) -> ProtectionMessageBody<'a>
fn clone(&self) -> ProtectionMessageBody<'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 ProtectionMessageBody<'a>
impl<'a> Debug for ProtectionMessageBody<'a>
Source§impl<'de, 'a> Deserialize<'de> for ProtectionMessageBody<'a>where
'de: 'a,
impl<'de, 'a> Deserialize<'de> for ProtectionMessageBody<'a>where
'de: 'a,
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<'a> Eq for ProtectionMessageBody<'a>
Source§impl<'a> PartialEq for ProtectionMessageBody<'a>
impl<'a> PartialEq for ProtectionMessageBody<'a>
Source§fn eq(&self, other: &ProtectionMessageBody<'a>) -> bool
fn eq(&self, other: &ProtectionMessageBody<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for ProtectionMessageBody<'a>
impl<'a> Serialize for ProtectionMessageBody<'a>
impl<'a> StructuralPartialEq for ProtectionMessageBody<'a>
Auto Trait Implementations§
impl<'a> Freeze for ProtectionMessageBody<'a>
impl<'a> RefUnwindSafe for ProtectionMessageBody<'a>
impl<'a> Send for ProtectionMessageBody<'a>
impl<'a> Sync for ProtectionMessageBody<'a>
impl<'a> Unpin for ProtectionMessageBody<'a>
impl<'a> UnsafeUnpin for ProtectionMessageBody<'a>
impl<'a> UnwindSafe for ProtectionMessageBody<'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