pub struct CopyOptionsPatch {
pub target: Option<Option<String>>,
pub chown: Option<Option<UserPatch>>,
pub chmod: Option<Option<String>>,
pub link: Option<Option<bool>>,
}
Fields§
§target: Option<Option<String>>
§chown: Option<Option<UserPatch>>
§chmod: Option<Option<String>>
§link: Option<Option<bool>>
Trait Implementations§
Source§impl Clone for CopyOptionsPatch
impl Clone for CopyOptionsPatch
Source§fn clone(&self) -> CopyOptionsPatch
fn clone(&self) -> CopyOptionsPatch
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CopyOptionsPatch
impl Debug for CopyOptionsPatch
Source§impl Default for CopyOptionsPatch
impl Default for CopyOptionsPatch
Source§fn default() -> CopyOptionsPatch
fn default() -> CopyOptionsPatch
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CopyOptionsPatchwhere
CopyOptionsPatch: Default,
impl<'de> Deserialize<'de> for CopyOptionsPatchwhere
CopyOptionsPatch: Default,
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 From<CopyOptionsPatch> for CopyOptions
impl From<CopyOptionsPatch> for CopyOptions
Source§fn from(value: CopyOptionsPatch) -> Self
fn from(value: CopyOptionsPatch) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CopyOptionsPatch
impl PartialEq for CopyOptionsPatch
Source§impl Patch<CopyOptionsPatch> for CopyOptions
impl Patch<CopyOptionsPatch> for CopyOptions
Source§fn apply(&mut self, patch: CopyOptionsPatch)
fn apply(&mut self, patch: CopyOptionsPatch)
Apply a patch
Source§fn into_patch(self) -> CopyOptionsPatch
fn into_patch(self) -> CopyOptionsPatch
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) -> CopyOptionsPatch
fn into_patch_by_diff(self, previous_struct: Self) -> CopyOptionsPatch
Returns a patch that when applied turns
previous_struct
into Self
Source§fn new_empty_patch() -> CopyOptionsPatch
fn new_empty_patch() -> CopyOptionsPatch
Get an empty patch instance
impl StructuralPartialEq for CopyOptionsPatch
Auto Trait Implementations§
impl Freeze for CopyOptionsPatch
impl RefUnwindSafe for CopyOptionsPatch
impl Send for CopyOptionsPatch
impl Sync for CopyOptionsPatch
impl Unpin for CopyOptionsPatch
impl UnwindSafe for CopyOptionsPatch
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