pub struct ContentLabelingDescriptor<'a> {
pub metadata_application_format: u16,
pub metadata_application_format_identifier: Option<u32>,
pub content_reference_id_record_flag: bool,
pub content_time_base_indicator: ContentTimeBaseIndicator,
pub content_reference_id_record: Option<&'a [u8]>,
pub time_base: Option<ContentTimeBase>,
pub content_id: Option<u8>,
pub time_base_association: Option<ContentTimeBaseAssociation<'a>>,
pub private_data: &'a [u8],
}Expand description
Content Labeling Descriptor.
Fields§
§metadata_application_format: u16Metadata application format (u16; see Table 2-84).
metadata_application_format_identifier: Option<u32>Metadata application format identifier — present when metadata_application_format == 0xFFFF.
content_reference_id_record_flag: boolContent reference ID record present flag.
content_time_base_indicator: ContentTimeBaseIndicatorTime base indicator (4-bit; Table 2-85).
content_reference_id_record: Option<&'a [u8]>Content reference ID record — present when content_reference_id_record_flag is true.
time_base: Option<ContentTimeBase>Time base block — present when indicator is 1 or 2.
content_id: Option<u8>contentId (7-bit) — present when indicator is 2.
time_base_association: Option<ContentTimeBaseAssociation<'a>>Time base association block — present when indicator is 3..=7.
private_data: &'a [u8]Trailing private data bytes.
Trait Implementations§
Source§impl<'a> Clone for ContentLabelingDescriptor<'a>
impl<'a> Clone for ContentLabelingDescriptor<'a>
Source§fn clone(&self) -> ContentLabelingDescriptor<'a>
fn clone(&self) -> ContentLabelingDescriptor<'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 ContentLabelingDescriptor<'a>
impl<'a> Debug for ContentLabelingDescriptor<'a>
Source§impl<'a> DescriptorDef<'a> for ContentLabelingDescriptor<'a>
impl<'a> DescriptorDef<'a> for ContentLabelingDescriptor<'a>
impl<'a> Eq for ContentLabelingDescriptor<'a>
Source§impl<'a> From<ContentLabelingDescriptor<'a>> for AnyDescriptor<'a>
impl<'a> From<ContentLabelingDescriptor<'a>> for AnyDescriptor<'a>
Source§fn from(d: ContentLabelingDescriptor<'a>) -> Self
fn from(d: ContentLabelingDescriptor<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for ContentLabelingDescriptor<'a>
impl<'a> Parse<'a> for ContentLabelingDescriptor<'a>
Source§impl<'a> PartialEq for ContentLabelingDescriptor<'a>
impl<'a> PartialEq for ContentLabelingDescriptor<'a>
Source§fn eq(&self, other: &ContentLabelingDescriptor<'a>) -> bool
fn eq(&self, other: &ContentLabelingDescriptor<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for ContentLabelingDescriptor<'a>
impl<'a> Serialize for ContentLabelingDescriptor<'a>
Source§impl Serialize for ContentLabelingDescriptor<'_>
impl Serialize for ContentLabelingDescriptor<'_>
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.impl<'a> StructuralPartialEq for ContentLabelingDescriptor<'a>
Source§impl<'a> Yokeable<'a> for ContentLabelingDescriptor<'static>
impl<'a> Yokeable<'a> for ContentLabelingDescriptor<'static>
Source§type Output = ContentLabelingDescriptor<'a>
type Output = ContentLabelingDescriptor<'a>
This type MUST be
Self with the 'static replaced with 'a, i.e. Self<'a>Source§fn transform_owned(self) -> Self::Output
fn transform_owned(self) -> Self::Output
Auto Trait Implementations§
impl<'a> Freeze for ContentLabelingDescriptor<'a>
impl<'a> RefUnwindSafe for ContentLabelingDescriptor<'a>
impl<'a> Send for ContentLabelingDescriptor<'a>
impl<'a> Sync for ContentLabelingDescriptor<'a>
impl<'a> Unpin for ContentLabelingDescriptor<'a>
impl<'a> UnsafeUnpin for ContentLabelingDescriptor<'a>
impl<'a> UnwindSafe for ContentLabelingDescriptor<'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