pub enum DestinationMode {
SingleFile,
MultipleFiles,
RecusiveDirectory,
}
Variants§
SingleFile
Transfering a single file to a path where the parent exists (there’s no requirement to the basename)
MultipleFiles
Transferring multiple files, the path must be to an existent directory
RecusiveDirectory
Transferring recursively from a directory, the basename must be an existent directory or the parent is (must not be file or invalid parent).
Trait Implementations§
Source§impl Debug for DestinationMode
impl Debug for DestinationMode
Source§impl Default for DestinationMode
impl Default for DestinationMode
Source§fn default() -> DestinationMode
fn default() -> DestinationMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DestinationMode
impl<'de> Deserialize<'de> for DestinationMode
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 Display for DestinationMode
impl Display for DestinationMode
Source§impl IntoEnumIterator for DestinationMode
impl IntoEnumIterator for DestinationMode
type Iterator = DestinationModeIter
fn iter() -> DestinationModeIter ⓘ
Source§impl PartialEq for DestinationMode
impl PartialEq for DestinationMode
Source§impl Serialize for DestinationMode
impl Serialize for DestinationMode
impl StructuralPartialEq for DestinationMode
Auto Trait Implementations§
impl Freeze for DestinationMode
impl RefUnwindSafe for DestinationMode
impl Send for DestinationMode
impl Sync for DestinationMode
impl Unpin for DestinationMode
impl UnwindSafe for DestinationMode
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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