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
source§fn eq(&self, other: &HomeDirectoryMapEntry) -> bool
fn eq(&self, other: &HomeDirectoryMapEntry) -> bool
self and other values to be equal, and is used
by ==.