Struct aws_sdk_transfer::types::HomeDirectoryMapEntry
source · #[non_exhaustive]pub struct HomeDirectoryMapEntry {
pub entry: String,
pub target: String,
pub type: Option<MapType>,
}Expand description
Represents an object that contains entries and targets for HomeDirectoryMappings.
The following is an Entry and Target pair example for chroot.
\[ { "Entry": "/", "Target": "/bucket_name/home/mydirectory" } \]
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.entry: StringRepresents an entry for HomeDirectoryMappings.
target: StringRepresents the map target that is used in a HomeDirectoryMapEntry.
type: 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.
Implementations§
source§impl HomeDirectoryMapEntry
impl HomeDirectoryMapEntry
sourcepub fn target(&self) -> &str
pub fn target(&self) -> &str
Represents the map target that is used in a HomeDirectoryMapEntry.
sourcepub fn type(&self) -> Option<&MapType>
pub fn 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.
source§impl HomeDirectoryMapEntry
impl HomeDirectoryMapEntry
sourcepub fn builder() -> HomeDirectoryMapEntryBuilder
pub fn builder() -> HomeDirectoryMapEntryBuilder
Creates a new builder-style object to manufacture HomeDirectoryMapEntry.
Trait Implementations§
source§impl Clone for HomeDirectoryMapEntry
impl Clone for HomeDirectoryMapEntry
source§fn clone(&self) -> HomeDirectoryMapEntry
fn clone(&self) -> HomeDirectoryMapEntry
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for HomeDirectoryMapEntry
impl Debug for HomeDirectoryMapEntry
source§impl PartialEq for HomeDirectoryMapEntry
impl PartialEq for HomeDirectoryMapEntry
impl StructuralPartialEq for HomeDirectoryMapEntry
Auto Trait Implementations§
impl Freeze for HomeDirectoryMapEntry
impl RefUnwindSafe for HomeDirectoryMapEntry
impl Send for HomeDirectoryMapEntry
impl Sync for HomeDirectoryMapEntry
impl Unpin for HomeDirectoryMapEntry
impl UnwindSafe for HomeDirectoryMapEntry
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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