pub struct Field {
pub name: String,
pub kind: FieldKind,
pub value: Value,
pub units: Option<String>,
}Expand description
One field of a fully-transformed message.
Fields§
§name: StringSnake-case canonical name from Profile.xlsx (or, when SubField
resolution kicks in, the SubField’s name). Developer fields carry
the name from field_description, which is an owned String.
kind: FieldKindStandard or developer field — see FieldKind.
value: ValueThe decoded field value.
units: Option<String>Display unit if Profile defines one (e.g. "m/s", "bpm").
Trait Implementations§
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