#[non_exhaustive]pub struct PropertyChange {
pub path: String,
pub before_sensitive_paths: Vec<String>,
pub before: Option<Value>,
pub after_sensitive_paths: Vec<String>,
pub after: Option<Value>,
/* private fields */
}Expand description
A property change represents a change to a property in the state file.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.path: StringOutput only. The path of the property change.
before_sensitive_paths: Vec<String>Output only. The paths of sensitive fields in before. Paths are relative
to path.
before: Option<Value>Output only. Representations of the object value before the actions.
after_sensitive_paths: Vec<String>Output only. The paths of sensitive fields in after. Paths are relative
to path.
after: Option<Value>Output only. Representations of the object value after the actions.
Implementations§
Source§impl PropertyChange
impl PropertyChange
pub fn new() -> Self
Sourcepub fn set_before_sensitive_paths<T, V>(self, v: T) -> Self
pub fn set_before_sensitive_paths<T, V>(self, v: T) -> Self
Sets the value of before_sensitive_paths.
§Example
ⓘ
let x = PropertyChange::new().set_before_sensitive_paths(["a", "b", "c"]);Sourcepub fn set_before<T>(self, v: T) -> Self
pub fn set_before<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_before<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_before<T>(self, v: Option<T>) -> Self
Sourcepub fn set_after_sensitive_paths<T, V>(self, v: T) -> Self
pub fn set_after_sensitive_paths<T, V>(self, v: T) -> Self
Sets the value of after_sensitive_paths.
§Example
ⓘ
let x = PropertyChange::new().set_after_sensitive_paths(["a", "b", "c"]);Trait Implementations§
Source§impl Clone for PropertyChange
impl Clone for PropertyChange
Source§fn clone(&self) -> PropertyChange
fn clone(&self) -> PropertyChange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PropertyChange
impl Debug for PropertyChange
Source§impl Default for PropertyChange
impl Default for PropertyChange
Source§fn default() -> PropertyChange
fn default() -> PropertyChange
Returns the “default value” for a type. Read more
Source§impl Message for PropertyChange
impl Message for PropertyChange
Source§impl PartialEq for PropertyChange
impl PartialEq for PropertyChange
impl StructuralPartialEq for PropertyChange
Auto Trait Implementations§
impl Freeze for PropertyChange
impl RefUnwindSafe for PropertyChange
impl Send for PropertyChange
impl Sync for PropertyChange
impl Unpin for PropertyChange
impl UnsafeUnpin for PropertyChange
impl UnwindSafe for PropertyChange
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