#[non_exhaustive]pub struct FileSystemDescription {Show 18 fields
pub owner_id: String,
pub creation_token: String,
pub file_system_id: String,
pub file_system_arn: Option<String>,
pub creation_time: DateTime,
pub life_cycle_state: LifeCycleState,
pub name: Option<String>,
pub number_of_mount_targets: i32,
pub size_in_bytes: Option<FileSystemSize>,
pub performance_mode: PerformanceMode,
pub encrypted: Option<bool>,
pub kms_key_id: Option<String>,
pub throughput_mode: Option<ThroughputMode>,
pub provisioned_throughput_in_mibps: Option<f64>,
pub availability_zone_name: Option<String>,
pub availability_zone_id: Option<String>,
pub tags: Vec<Tag>,
pub file_system_protection: Option<FileSystemProtectionDescription>,
}
Expand description
A description of the file system.
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.owner_id: String
The Amazon Web Services account that created the file system.
creation_token: String
The opaque string specified in the request.
file_system_id: String
The ID of the file system, assigned by Amazon EFS.
file_system_arn: Option<String>
The Amazon Resource Name (ARN) for the EFS file system, in the format arn:aws:elasticfilesystem:region:account-id:file-system/file-system-id
. Example with sample data: arn:aws:elasticfilesystem:us-west-2:1111333322228888:file-system/fs-01234567
creation_time: DateTime
The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z).
life_cycle_state: LifeCycleState
The lifecycle phase of the file system.
name: Option<String>
You can add tags to a file system, including a Name
tag. For more information, see CreateFileSystem
. If the file system has a Name
tag, Amazon EFS returns the value in this field.
number_of_mount_targets: i32
The current number of mount targets that the file system has. For more information, see CreateMountTarget
.
size_in_bytes: Option<FileSystemSize>
The latest known metered size (in bytes) of data stored in the file system, in its Value
field, and the time at which that size was determined in its Timestamp
field. The Timestamp
value is the integer number of seconds since 1970-01-01T00:00:00Z. The SizeInBytes
value doesn't represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, SizeInBytes
represents actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size that the file system was at any point in time.
performance_mode: PerformanceMode
The performance mode of the file system.
encrypted: Option<bool>
A Boolean value that, if true, indicates that the file system is encrypted.
kms_key_id: Option<String>
The ID of an KMS key used to protect the encrypted file system.
throughput_mode: Option<ThroughputMode>
Displays the file system's throughput mode. For more information, see Throughput modes in the Amazon EFS User Guide.
provisioned_throughput_in_mibps: Option<f64>
The amount of provisioned throughput, measured in MiBps, for the file system. Valid for file systems using ThroughputMode
set to provisioned
.
availability_zone_name: Option<String>
Describes the Amazon Web Services Availability Zone in which the file system is located, and is valid only for One Zone file systems. For more information, see Using EFS storage classes in the Amazon EFS User Guide.
availability_zone_id: Option<String>
The unique and consistent identifier of the Availability Zone in which the file system is located, and is valid only for One Zone file systems. For example, use1-az1
is an Availability Zone ID for the us-east-1 Amazon Web Services Region, and it has the same location in every Amazon Web Services account.
The tags associated with the file system, presented as an array of Tag
objects.
file_system_protection: Option<FileSystemProtectionDescription>
Describes the protection on the file system.
Implementations§
Source§impl FileSystemDescription
impl FileSystemDescription
Sourcepub fn creation_token(&self) -> &str
pub fn creation_token(&self) -> &str
The opaque string specified in the request.
Sourcepub fn file_system_id(&self) -> &str
pub fn file_system_id(&self) -> &str
The ID of the file system, assigned by Amazon EFS.
Sourcepub fn file_system_arn(&self) -> Option<&str>
pub fn file_system_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) for the EFS file system, in the format arn:aws:elasticfilesystem:region:account-id:file-system/file-system-id
. Example with sample data: arn:aws:elasticfilesystem:us-west-2:1111333322228888:file-system/fs-01234567
Sourcepub fn creation_time(&self) -> &DateTime
pub fn creation_time(&self) -> &DateTime
The time that the file system was created, in seconds (since 1970-01-01T00:00:00Z).
Sourcepub fn life_cycle_state(&self) -> &LifeCycleState
pub fn life_cycle_state(&self) -> &LifeCycleState
The lifecycle phase of the file system.
Sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
You can add tags to a file system, including a Name
tag. For more information, see CreateFileSystem
. If the file system has a Name
tag, Amazon EFS returns the value in this field.
Sourcepub fn number_of_mount_targets(&self) -> i32
pub fn number_of_mount_targets(&self) -> i32
The current number of mount targets that the file system has. For more information, see CreateMountTarget
.
Sourcepub fn size_in_bytes(&self) -> Option<&FileSystemSize>
pub fn size_in_bytes(&self) -> Option<&FileSystemSize>
The latest known metered size (in bytes) of data stored in the file system, in its Value
field, and the time at which that size was determined in its Timestamp
field. The Timestamp
value is the integer number of seconds since 1970-01-01T00:00:00Z. The SizeInBytes
value doesn't represent the size of a consistent snapshot of the file system, but it is eventually consistent when there are no writes to the file system. That is, SizeInBytes
represents actual size only if the file system is not modified for a period longer than a couple of hours. Otherwise, the value is not the exact size that the file system was at any point in time.
Sourcepub fn performance_mode(&self) -> &PerformanceMode
pub fn performance_mode(&self) -> &PerformanceMode
The performance mode of the file system.
Sourcepub fn encrypted(&self) -> Option<bool>
pub fn encrypted(&self) -> Option<bool>
A Boolean value that, if true, indicates that the file system is encrypted.
Sourcepub fn kms_key_id(&self) -> Option<&str>
pub fn kms_key_id(&self) -> Option<&str>
The ID of an KMS key used to protect the encrypted file system.
Sourcepub fn throughput_mode(&self) -> Option<&ThroughputMode>
pub fn throughput_mode(&self) -> Option<&ThroughputMode>
Displays the file system's throughput mode. For more information, see Throughput modes in the Amazon EFS User Guide.
Sourcepub fn provisioned_throughput_in_mibps(&self) -> Option<f64>
pub fn provisioned_throughput_in_mibps(&self) -> Option<f64>
The amount of provisioned throughput, measured in MiBps, for the file system. Valid for file systems using ThroughputMode
set to provisioned
.
Sourcepub fn availability_zone_name(&self) -> Option<&str>
pub fn availability_zone_name(&self) -> Option<&str>
Describes the Amazon Web Services Availability Zone in which the file system is located, and is valid only for One Zone file systems. For more information, see Using EFS storage classes in the Amazon EFS User Guide.
Sourcepub fn availability_zone_id(&self) -> Option<&str>
pub fn availability_zone_id(&self) -> Option<&str>
The unique and consistent identifier of the Availability Zone in which the file system is located, and is valid only for One Zone file systems. For example, use1-az1
is an Availability Zone ID for the us-east-1 Amazon Web Services Region, and it has the same location in every Amazon Web Services account.
The tags associated with the file system, presented as an array of Tag
objects.
Sourcepub fn file_system_protection(&self) -> Option<&FileSystemProtectionDescription>
pub fn file_system_protection(&self) -> Option<&FileSystemProtectionDescription>
Describes the protection on the file system.
Source§impl FileSystemDescription
impl FileSystemDescription
Sourcepub fn builder() -> FileSystemDescriptionBuilder
pub fn builder() -> FileSystemDescriptionBuilder
Creates a new builder-style object to manufacture FileSystemDescription
.
Trait Implementations§
Source§impl Clone for FileSystemDescription
impl Clone for FileSystemDescription
Source§fn clone(&self) -> FileSystemDescription
fn clone(&self) -> FileSystemDescription
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FileSystemDescription
impl Debug for FileSystemDescription
Source§impl PartialEq for FileSystemDescription
impl PartialEq for FileSystemDescription
impl StructuralPartialEq for FileSystemDescription
Auto Trait Implementations§
impl Freeze for FileSystemDescription
impl RefUnwindSafe for FileSystemDescription
impl Send for FileSystemDescription
impl Sync for FileSystemDescription
impl Unpin for FileSystemDescription
impl UnwindSafe for FileSystemDescription
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§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 moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);