pub struct CpConfig {Show 18 fields
pub recursive: bool,
pub force: bool,
pub interactive: bool,
pub no_clobber: bool,
pub verbose: bool,
pub preserve_mode: bool,
pub preserve_ownership: bool,
pub preserve_timestamps: bool,
pub dereference: DerefMode,
pub link: bool,
pub symbolic_link: bool,
pub update: bool,
pub one_file_system: bool,
pub backup: Option<BackupMode>,
pub suffix: String,
pub reflink: ReflinkMode,
pub target_directory: Option<String>,
pub no_target_directory: bool,
}Expand description
Configuration for a cp invocation.
Fields§
§recursive: bool§force: bool§interactive: bool§no_clobber: bool§verbose: bool§preserve_mode: bool§preserve_ownership: bool§preserve_timestamps: bool§dereference: DerefMode§link: bool§symbolic_link: bool§update: bool§one_file_system: bool§backup: Option<BackupMode>§suffix: String§reflink: ReflinkMode§target_directory: Option<String>§no_target_directory: boolTrait Implementations§
Auto Trait Implementations§
impl Freeze for CpConfig
impl RefUnwindSafe for CpConfig
impl Send for CpConfig
impl Sync for CpConfig
impl Unpin for CpConfig
impl UnsafeUnpin for CpConfig
impl UnwindSafe for CpConfig
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more