pub struct Field {
pub specifier: FieldSpecifier,
pub value: FieldValue,
}Expand description
A decoded field of a Data Record: the Field Specifier from the Template and the decoded value
Fields§
§specifier: FieldSpecifierField Specifier from the Template
value: FieldValueDecoded value
Implementations§
Source§impl Field
impl Field
Sourcepub fn information_element(&self) -> Option<&'static InformationElement>
pub fn information_element(&self) -> Option<&'static InformationElement>
The IANA Information Element of this field (forward element for reverse fields), if known
Sourcepub fn name(&self) -> Option<&'static str>
pub fn name(&self) -> Option<&'static str>
The IANA name of this field’s Information Element, if known.
Reverse Information Elements (RFC 5103) return the forward name; use
FieldSpecifier::is_reverse to distinguish them.
Trait Implementations§
impl StructuralPartialEq for Field
Auto Trait Implementations§
impl Freeze for Field
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnsafeUnpin for Field
impl UnwindSafe for Field
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