#[non_exhaustive]pub struct FieldChange {
pub module_id: String,
pub project_id: Option<String>,
pub path: String,
pub old: RecordedValue,
pub new: RecordedValue,
pub old_source: Layer,
pub new_source: Layer,
pub apply: ApplyKind,
pub reasons: Vec<String>,
}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.module_id: String§project_id: Option<String>§path: String§old: RecordedValue§new: RecordedValue§old_source: Layer§new_source: Layer§apply: ApplyKind§reasons: Vec<String>Implementations§
Source§impl FieldChange
impl FieldChange
pub fn new( module_id: impl Into<String>, path: impl Into<String>, old: RecordedValue, new: RecordedValue, apply: ApplyKind, ) -> Self
Trait Implementations§
Source§impl Clone for FieldChange
impl Clone for FieldChange
Source§impl Debug for FieldChange
impl Debug for FieldChange
Source§impl<'de> Deserialize<'de> for FieldChange
impl<'de> Deserialize<'de> for FieldChange
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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 FieldChange
impl Unpin for FieldChange
impl UnsafeUnpin for FieldChange
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