pub struct FieldChange { /* private fields */ }Expand description
One entry of a preview’s change list: a field whose effective value the edit changes.
For secret-reference fields both values are replaced by
Value::String("<redacted>") (see REDACTED) when the entry is built,
so the reference never enters the change list.
Implementations§
Source§impl FieldChange
impl FieldChange
Sourcepub fn apply_class(&self) -> ApplyClass
pub fn apply_class(&self) -> ApplyClass
Returns when this change takes effect.
Sourcepub fn old(&self) -> Option<&Value>
pub fn old(&self) -> Option<&Value>
Returns the effective value before the edit (the default when the
base omitted the field), or None when the base held a value of a
type that has no Value shape, such as a float.
Sourcepub fn is_redacted(&self) -> bool
pub fn is_redacted(&self) -> bool
Returns true if the values were replaced by REDACTED.
Trait Implementations§
Source§impl Clone for FieldChange
impl Clone for FieldChange
Source§impl Debug for FieldChange
impl Debug for FieldChange
impl Eq for FieldChange
Source§impl Hash for FieldChange
impl Hash for FieldChange
Source§impl PartialEq for FieldChange
impl PartialEq for FieldChange
Source§impl Serialize for FieldChange
impl Serialize for FieldChange
impl StructuralPartialEq for FieldChange
Auto Trait Implementations§
impl Forget for FieldChange
impl Freeze for FieldChange
impl Move for FieldChange
impl RefUnwindSafe for FieldChange
impl Send for FieldChange
impl Sync for FieldChangewhere
RawVecInner: Sync,
impl Unpin for FieldChange
impl UnsafeUnpin for FieldChangewhere
&'static str: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
impl UnwindSafe for FieldChange
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.