#[non_exhaustive]pub struct DescribeResizeOutput {Show 16 fields
pub target_node_type: Option<String>,
pub target_number_of_nodes: Option<i32>,
pub target_cluster_type: Option<String>,
pub status: Option<String>,
pub import_tables_completed: Option<Vec<String>>,
pub import_tables_in_progress: Option<Vec<String>>,
pub import_tables_not_started: Option<Vec<String>>,
pub avg_resize_rate_in_mega_bytes_per_second: Option<f64>,
pub total_resize_data_in_mega_bytes: Option<i64>,
pub progress_in_mega_bytes: Option<i64>,
pub elapsed_time_in_seconds: Option<i64>,
pub estimated_time_to_completion_in_seconds: Option<i64>,
pub resize_type: Option<String>,
pub message: Option<String>,
pub target_encryption_type: Option<String>,
pub data_transfer_progress_percent: Option<f64>,
/* private fields */
}
Expand description
Describes the result of a cluster resize operation.
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.target_node_type: Option<String>
The node type that the cluster will have after the resize operation is complete.
target_number_of_nodes: Option<i32>
The number of nodes that the cluster will have after the resize operation is complete.
target_cluster_type: Option<String>
The cluster type after the resize operation is complete.
Valid Values: multi-node
| single-node
status: Option<String>
The status of the resize operation.
Valid Values: NONE
| IN_PROGRESS
| FAILED
| SUCCEEDED
| CANCELLING
import_tables_completed: Option<Vec<String>>
The names of tables that have been completely imported .
Valid Values: List of table names.
import_tables_in_progress: Option<Vec<String>>
The names of tables that are being currently imported.
Valid Values: List of table names.
import_tables_not_started: Option<Vec<String>>
The names of tables that have not been yet imported.
Valid Values: List of table names
avg_resize_rate_in_mega_bytes_per_second: Option<f64>
The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.
total_resize_data_in_mega_bytes: Option<i64>
The estimated total amount of data, in megabytes, on the cluster before the resize operation began.
progress_in_mega_bytes: Option<i64>
While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).
elapsed_time_in_seconds: Option<i64>
The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.
estimated_time_to_completion_in_seconds: Option<i64>
The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.
resize_type: Option<String>
An enum with possible values of ClassicResize
and ElasticResize
. These values describe the type of resize operation being performed.
message: Option<String>
An optional string to provide additional details about the resize action.
target_encryption_type: Option<String>
The type of encryption for the cluster after the resize is complete.
Possible values are KMS
and None
.
data_transfer_progress_percent: Option<f64>
The percent of data transferred from source cluster to target cluster.
Implementations§
Source§impl DescribeResizeOutput
impl DescribeResizeOutput
Sourcepub fn target_node_type(&self) -> Option<&str>
pub fn target_node_type(&self) -> Option<&str>
The node type that the cluster will have after the resize operation is complete.
Sourcepub fn target_number_of_nodes(&self) -> Option<i32>
pub fn target_number_of_nodes(&self) -> Option<i32>
The number of nodes that the cluster will have after the resize operation is complete.
Sourcepub fn target_cluster_type(&self) -> Option<&str>
pub fn target_cluster_type(&self) -> Option<&str>
The cluster type after the resize operation is complete.
Valid Values: multi-node
| single-node
Sourcepub fn status(&self) -> Option<&str>
pub fn status(&self) -> Option<&str>
The status of the resize operation.
Valid Values: NONE
| IN_PROGRESS
| FAILED
| SUCCEEDED
| CANCELLING
Sourcepub fn import_tables_completed(&self) -> &[String]
pub fn import_tables_completed(&self) -> &[String]
The names of tables that have been completely imported .
Valid Values: List of table names.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .import_tables_completed.is_none()
.
Sourcepub fn import_tables_in_progress(&self) -> &[String]
pub fn import_tables_in_progress(&self) -> &[String]
The names of tables that are being currently imported.
Valid Values: List of table names.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .import_tables_in_progress.is_none()
.
Sourcepub fn import_tables_not_started(&self) -> &[String]
pub fn import_tables_not_started(&self) -> &[String]
The names of tables that have not been yet imported.
Valid Values: List of table names
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .import_tables_not_started.is_none()
.
Sourcepub fn avg_resize_rate_in_mega_bytes_per_second(&self) -> Option<f64>
pub fn avg_resize_rate_in_mega_bytes_per_second(&self) -> Option<f64>
The average rate of the resize operation over the last few minutes, measured in megabytes per second. After the resize operation completes, this value shows the average rate of the entire resize operation.
Sourcepub fn total_resize_data_in_mega_bytes(&self) -> Option<i64>
pub fn total_resize_data_in_mega_bytes(&self) -> Option<i64>
The estimated total amount of data, in megabytes, on the cluster before the resize operation began.
Sourcepub fn progress_in_mega_bytes(&self) -> Option<i64>
pub fn progress_in_mega_bytes(&self) -> Option<i64>
While the resize operation is in progress, this value shows the current amount of data, in megabytes, that has been processed so far. When the resize operation is complete, this value shows the total amount of data, in megabytes, on the cluster, which may be more or less than TotalResizeDataInMegaBytes (the estimated total amount of data before resize).
Sourcepub fn elapsed_time_in_seconds(&self) -> Option<i64>
pub fn elapsed_time_in_seconds(&self) -> Option<i64>
The amount of seconds that have elapsed since the resize operation began. After the resize operation completes, this value shows the total actual time, in seconds, for the resize operation.
Sourcepub fn estimated_time_to_completion_in_seconds(&self) -> Option<i64>
pub fn estimated_time_to_completion_in_seconds(&self) -> Option<i64>
The estimated time remaining, in seconds, until the resize operation is complete. This value is calculated based on the average resize rate and the estimated amount of data remaining to be processed. Once the resize operation is complete, this value will be 0.
Sourcepub fn resize_type(&self) -> Option<&str>
pub fn resize_type(&self) -> Option<&str>
An enum with possible values of ClassicResize
and ElasticResize
. These values describe the type of resize operation being performed.
Sourcepub fn message(&self) -> Option<&str>
pub fn message(&self) -> Option<&str>
An optional string to provide additional details about the resize action.
Sourcepub fn target_encryption_type(&self) -> Option<&str>
pub fn target_encryption_type(&self) -> Option<&str>
The type of encryption for the cluster after the resize is complete.
Possible values are KMS
and None
.
Sourcepub fn data_transfer_progress_percent(&self) -> Option<f64>
pub fn data_transfer_progress_percent(&self) -> Option<f64>
The percent of data transferred from source cluster to target cluster.
Source§impl DescribeResizeOutput
impl DescribeResizeOutput
Sourcepub fn builder() -> DescribeResizeOutputBuilder
pub fn builder() -> DescribeResizeOutputBuilder
Creates a new builder-style object to manufacture DescribeResizeOutput
.
Trait Implementations§
Source§impl Clone for DescribeResizeOutput
impl Clone for DescribeResizeOutput
Source§fn clone(&self) -> DescribeResizeOutput
fn clone(&self) -> DescribeResizeOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DescribeResizeOutput
impl Debug for DescribeResizeOutput
Source§impl PartialEq for DescribeResizeOutput
impl PartialEq for DescribeResizeOutput
Source§impl RequestId for DescribeResizeOutput
impl RequestId for DescribeResizeOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None
if the service could not be reached.impl StructuralPartialEq for DescribeResizeOutput
Auto Trait Implementations§
impl Freeze for DescribeResizeOutput
impl RefUnwindSafe for DescribeResizeOutput
impl Send for DescribeResizeOutput
impl Sync for DescribeResizeOutput
impl Unpin for DescribeResizeOutput
impl UnwindSafe for DescribeResizeOutput
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);