pub struct AddPatch {
pub files: Option<VecPatch<Resource>>,
pub options: Option<CopyOptionsPatch>,
pub checksum: Option<Option<String>>,
}
Fields§
§files: Option<VecPatch<Resource>>
§options: Option<CopyOptionsPatch>
§checksum: Option<Option<String>>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AddPatch
impl<'de> Deserialize<'de> for AddPatch
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<AddPatch> for Add
impl Patch<AddPatch> for Add
Source§fn into_patch(self) -> AddPatch
fn into_patch(self) -> AddPatch
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) -> AddPatch
fn into_patch_by_diff(self, previous_struct: Self) -> AddPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> AddPatch
fn new_empty_patch() -> AddPatch
Get an empty patch instance
impl StructuralPartialEq for AddPatch
Auto Trait Implementations§
impl Freeze for AddPatch
impl RefUnwindSafe for AddPatch
impl Send for AddPatch
impl Sync for AddPatch
impl Unpin for AddPatch
impl UnwindSafe for AddPatch
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