pub struct Field<'a> { /* private fields */ }Expand description
One field of an ItemUpdate: where it sits, what it is called, what it
holds, and whether this update changed it.
Implementations§
Source§impl<'a> Field<'a>
impl<'a> Field<'a>
Sourcepub fn name(&self) -> &'a str
pub fn name(&self) -> &'a str
The field’s name, or its 1-based position in decimal if the caller
declared no name for it — see ItemUpdate::field_name.
Sourcepub fn declared_name(&self) -> Option<&'a str>
pub fn declared_name(&self) -> Option<&'a str>
The field’s name, or None if the caller declared none.
Sourcepub fn value(&self) -> FieldValue<'a>
pub fn value(&self) -> FieldValue<'a>
The field’s value after this update. Null and empty stay distinct; see
FieldValue.
Sourcepub fn is_changed(&self) -> bool
pub fn is_changed(&self) -> bool
Whether this update carried a token for the field
[docs/spec/04-notifications.md §2.5].
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Field<'a>
impl<'a> RefUnwindSafe for Field<'a>
impl<'a> Send for Field<'a>
impl<'a> Sync for Field<'a>
impl<'a> Unpin for Field<'a>
impl<'a> UnsafeUnpin for Field<'a>
impl<'a> UnwindSafe for Field<'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