pub struct OptionsTemplateRecord {
pub template_id: u16,
pub field_count: u16,
pub scope_field_count: u16,
pub field_specifiers: Vec<FieldSpecifier>,
}Expand description
Options Template Record - RFC 7011 Section 3.4.2.2
An Options Template Record Header followed by field_count Field
Specifiers, the first scope_field_count of which are Scope Fields.
0 1 2 3
0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Template ID (> 255) | Field Count |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
| Scope Field Count |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+A record with a Field Count of 0 is an Options Template Withdrawal (RFC 7011 Section 8.1); it carries no Scope Field Count (set to 0 here). Template ID 3 withdraws all Options Templates of the Observation Domain.
Fields§
§template_id: u16Template ID, in the range 256 to 65535 (or 3 for an All Options Templates Withdrawal)
field_count: u16Number of all fields in this Options Template Record, including the Scope Fields
scope_field_count: u16Number of Scope Fields (MUST NOT be zero, except in a withdrawal)
field_specifiers: Vec<FieldSpecifier>Field Specifiers (Scope Fields first)
Implementations§
Source§impl OptionsTemplateRecord
impl OptionsTemplateRecord
Sourcepub fn is_withdrawal(&self) -> bool
pub fn is_withdrawal(&self) -> bool
Whether this record is an Options Template Withdrawal (RFC 7011 Section 8.1)
Trait Implementations§
Source§impl Clone for OptionsTemplateRecord
impl Clone for OptionsTemplateRecord
Source§impl Debug for OptionsTemplateRecord
impl Debug for OptionsTemplateRecord
impl Eq for OptionsTemplateRecord
Source§impl Hash for OptionsTemplateRecord
impl Hash for OptionsTemplateRecord
Source§impl PartialEq for OptionsTemplateRecord
impl PartialEq for OptionsTemplateRecord
impl StructuralPartialEq for OptionsTemplateRecord
Auto Trait Implementations§
impl Freeze for OptionsTemplateRecord
impl RefUnwindSafe for OptionsTemplateRecord
impl Send for OptionsTemplateRecord
impl Sync for OptionsTemplateRecord
impl Unpin for OptionsTemplateRecord
impl UnsafeUnpin for OptionsTemplateRecord
impl UnwindSafe for OptionsTemplateRecord
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