#[non_exhaustive]pub struct MutationRecord {
pub mutate_time: Option<Timestamp>,
pub mutated_by: String,
/* private fields */
}Expand description
Describes a change made to a configuration.
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.mutate_time: Option<Timestamp>When the change occurred.
mutated_by: StringThe email address of the user making the change.
Implementations§
Source§impl MutationRecord
impl MutationRecord
pub fn new() -> Self
Sourcepub fn set_mutate_time<T>(self, v: T) -> Self
pub fn set_mutate_time<T>(self, v: T) -> Self
Sets the value of mutate_time.
§Example
ⓘ
use wkt::Timestamp;
let x = MutationRecord::new().set_mutate_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_mutate_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_mutate_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of mutate_time.
§Example
ⓘ
use wkt::Timestamp;
let x = MutationRecord::new().set_or_clear_mutate_time(Some(Timestamp::default()/* use setters */));
let x = MutationRecord::new().set_or_clear_mutate_time(None::<Timestamp>);Sourcepub fn set_mutated_by<T: Into<String>>(self, v: T) -> Self
pub fn set_mutated_by<T: Into<String>>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for MutationRecord
impl Clone for MutationRecord
Source§fn clone(&self) -> MutationRecord
fn clone(&self) -> MutationRecord
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 MutationRecord
impl Debug for MutationRecord
Source§impl Default for MutationRecord
impl Default for MutationRecord
Source§fn default() -> MutationRecord
fn default() -> MutationRecord
Returns the “default value” for a type. Read more
Source§impl Message for MutationRecord
impl Message for MutationRecord
Source§impl PartialEq for MutationRecord
impl PartialEq for MutationRecord
impl StructuralPartialEq for MutationRecord
Auto Trait Implementations§
impl Freeze for MutationRecord
impl RefUnwindSafe for MutationRecord
impl Send for MutationRecord
impl Sync for MutationRecord
impl Unpin for MutationRecord
impl UnwindSafe for MutationRecord
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