#[non_exhaustive]pub struct HomeDirectoryMapEntryBuilder { /* private fields */ }
Expand description
A builder for HomeDirectoryMapEntry
.
Implementations§
source§impl HomeDirectoryMapEntryBuilder
impl HomeDirectoryMapEntryBuilder
sourcepub fn entry(self, input: impl Into<String>) -> Self
pub fn entry(self, input: impl Into<String>) -> Self
Represents an entry for HomeDirectoryMappings
.
sourcepub fn set_entry(self, input: Option<String>) -> Self
pub fn set_entry(self, input: Option<String>) -> Self
Represents an entry for HomeDirectoryMappings
.
sourcepub fn target(self, input: impl Into<String>) -> Self
pub fn target(self, input: impl Into<String>) -> Self
Represents the map target that is used in a HomeDirectoryMapEntry
.
sourcepub fn set_target(self, input: Option<String>) -> Self
pub fn set_target(self, input: Option<String>) -> Self
Represents the map target that is used in a HomeDirectoryMapEntry
.
sourcepub fn get_target(&self) -> &Option<String>
pub fn get_target(&self) -> &Option<String>
Represents the map target that is used in a HomeDirectoryMapEntry
.
sourcepub fn type(self, input: MapType) -> Self
pub fn type(self, input: MapType) -> Self
Specifies the type of mapping. Set the type to FILE
if you want the mapping to point to a file, or DIRECTORY
for the directory to point to a directory.
By default, home directory mappings have a Type
of DIRECTORY
when you create a Transfer Family server. You would need to explicitly set Type
to FILE
if you want a mapping to have a file target.
sourcepub fn set_type(self, input: Option<MapType>) -> Self
pub fn set_type(self, input: Option<MapType>) -> Self
Specifies the type of mapping. Set the type to FILE
if you want the mapping to point to a file, or DIRECTORY
for the directory to point to a directory.
By default, home directory mappings have a Type
of DIRECTORY
when you create a Transfer Family server. You would need to explicitly set Type
to FILE
if you want a mapping to have a file target.
sourcepub fn get_type(&self) -> &Option<MapType>
pub fn get_type(&self) -> &Option<MapType>
Specifies the type of mapping. Set the type to FILE
if you want the mapping to point to a file, or DIRECTORY
for the directory to point to a directory.
By default, home directory mappings have a Type
of DIRECTORY
when you create a Transfer Family server. You would need to explicitly set Type
to FILE
if you want a mapping to have a file target.
sourcepub fn build(self) -> Result<HomeDirectoryMapEntry, BuildError>
pub fn build(self) -> Result<HomeDirectoryMapEntry, BuildError>
Consumes the builder and constructs a HomeDirectoryMapEntry
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for HomeDirectoryMapEntryBuilder
impl Clone for HomeDirectoryMapEntryBuilder
source§fn clone(&self) -> HomeDirectoryMapEntryBuilder
fn clone(&self) -> HomeDirectoryMapEntryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for HomeDirectoryMapEntryBuilder
impl Debug for HomeDirectoryMapEntryBuilder
source§impl Default for HomeDirectoryMapEntryBuilder
impl Default for HomeDirectoryMapEntryBuilder
source§fn default() -> HomeDirectoryMapEntryBuilder
fn default() -> HomeDirectoryMapEntryBuilder
source§impl PartialEq for HomeDirectoryMapEntryBuilder
impl PartialEq for HomeDirectoryMapEntryBuilder
source§fn eq(&self, other: &HomeDirectoryMapEntryBuilder) -> bool
fn eq(&self, other: &HomeDirectoryMapEntryBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for HomeDirectoryMapEntryBuilder
Auto Trait Implementations§
impl Freeze for HomeDirectoryMapEntryBuilder
impl RefUnwindSafe for HomeDirectoryMapEntryBuilder
impl Send for HomeDirectoryMapEntryBuilder
impl Sync for HomeDirectoryMapEntryBuilder
impl Unpin for HomeDirectoryMapEntryBuilder
impl UnwindSafe for HomeDirectoryMapEntryBuilder
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
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>
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>
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