pub struct CopyPatch {
pub from: Option<FromContextPatch>,
pub paths: Option<VecPatch<String>>,
pub options: Option<CopyOptionsPatch>,
pub exclude: Option<VecPatch<String>>,
pub parents: Option<Option<bool>>,
}
Fields§
§from: Option<FromContextPatch>
§paths: Option<VecPatch<String>>
§options: Option<CopyOptionsPatch>
§exclude: Option<VecPatch<String>>
§parents: Option<Option<bool>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CopyPatch
impl<'de> Deserialize<'de> for CopyPatch
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 Patch<CopyPatch> for Copy
impl Patch<CopyPatch> for Copy
Source§fn into_patch(self) -> CopyPatch
fn into_patch(self) -> CopyPatch
Returns a patch that when applied turns any struct of the same type into
Self
Source§fn into_patch_by_diff(self, previous_struct: Self) -> CopyPatch
fn into_patch_by_diff(self, previous_struct: Self) -> CopyPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> CopyPatch
fn new_empty_patch() -> CopyPatch
Get an empty patch instance
impl StructuralPartialEq for CopyPatch
Auto Trait Implementations§
impl Freeze for CopyPatch
impl RefUnwindSafe for CopyPatch
impl Send for CopyPatch
impl Sync for CopyPatch
impl Unpin for CopyPatch
impl UnwindSafe for CopyPatch
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