pub struct CopyOptions {
pub recursive: Option<bool>,
pub force: Option<bool>,
}Expand description
Interface for cp options.
Fields§
§recursive: Option<bool>Whether to recursively copy all subdirectories. Defaults to false.
force: Option<bool>Whether to overwrite existing files in the destination. Defaults to true.
Trait Implementations§
Source§impl Clone for CopyOptions
impl Clone for CopyOptions
Source§fn clone(&self) -> CopyOptions
fn clone(&self) -> CopyOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CopyOptions
impl Debug for CopyOptions
Source§impl From<CopyOptions> for JsValue
impl From<CopyOptions> for JsValue
Source§fn from(value: CopyOptions) -> Self
fn from(value: CopyOptions) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for CopyOptions
impl FromWasmAbi for CopyOptions
Source§impl Hash for CopyOptions
impl Hash for CopyOptions
Source§impl IntoWasmAbi for CopyOptions
impl IntoWasmAbi for CopyOptions
Source§impl LongRefFromWasmAbi for CopyOptions
impl LongRefFromWasmAbi for CopyOptions
Source§impl OptionFromWasmAbi for CopyOptions
impl OptionFromWasmAbi for CopyOptions
Source§impl OptionIntoWasmAbi for CopyOptions
impl OptionIntoWasmAbi for CopyOptions
Source§impl Ord for CopyOptions
impl Ord for CopyOptions
Source§fn cmp(&self, other: &CopyOptions) -> Ordering
fn cmp(&self, other: &CopyOptions) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CopyOptions
impl PartialEq for CopyOptions
Source§impl PartialOrd for CopyOptions
impl PartialOrd for CopyOptions
Source§impl RefFromWasmAbi for CopyOptions
impl RefFromWasmAbi for CopyOptions
Source§type Anchor = RcRef<CopyOptions>
type Anchor = RcRef<CopyOptions>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for CopyOptions
impl RefMutFromWasmAbi for CopyOptions
Source§impl TryFromJsValue for CopyOptions
impl TryFromJsValue for CopyOptions
Source§impl VectorFromWasmAbi for CopyOptions
impl VectorFromWasmAbi for CopyOptions
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[CopyOptions]>
Source§impl VectorIntoWasmAbi for CopyOptions
impl VectorIntoWasmAbi for CopyOptions
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[CopyOptions]>) -> Self::Abi
Source§impl WasmDescribeVector for CopyOptions
impl WasmDescribeVector for CopyOptions
impl Copy for CopyOptions
impl Eq for CopyOptions
impl StructuralPartialEq for CopyOptions
impl SupportsConstructor for CopyOptions
impl SupportsInstanceProperty for CopyOptions
impl SupportsStaticProperty for CopyOptions
Auto Trait Implementations§
impl Freeze for CopyOptions
impl RefUnwindSafe for CopyOptions
impl Send for CopyOptions
impl Sync for CopyOptions
impl Unpin for CopyOptions
impl UnwindSafe for CopyOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.