#[non_exhaustive]pub struct AwsRdsDbSnapshotDetailsBuilder { /* private fields */ }Expand description
A builder for AwsRdsDbSnapshotDetails.
Implementations§
source§impl AwsRdsDbSnapshotDetailsBuilder
impl AwsRdsDbSnapshotDetailsBuilder
sourcepub fn db_snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn db_snapshot_identifier(self, input: impl Into<String>) -> Self
The name or ARN of the DB snapshot that is used to restore the DB instance.
sourcepub fn set_db_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_db_snapshot_identifier(self, input: Option<String>) -> Self
The name or ARN of the DB snapshot that is used to restore the DB instance.
sourcepub fn get_db_snapshot_identifier(&self) -> &Option<String>
pub fn get_db_snapshot_identifier(&self) -> &Option<String>
The name or ARN of the DB snapshot that is used to restore the DB instance.
sourcepub fn db_instance_identifier(self, input: impl Into<String>) -> Self
pub fn db_instance_identifier(self, input: impl Into<String>) -> Self
A name for the DB instance.
sourcepub fn set_db_instance_identifier(self, input: Option<String>) -> Self
pub fn set_db_instance_identifier(self, input: Option<String>) -> Self
A name for the DB instance.
sourcepub fn get_db_instance_identifier(&self) -> &Option<String>
pub fn get_db_instance_identifier(&self) -> &Option<String>
A name for the DB instance.
sourcepub fn snapshot_create_time(self, input: impl Into<String>) -> Self
pub fn snapshot_create_time(self, input: impl Into<String>) -> Self
When the snapshot was taken in Coordinated Universal Time (UTC).
sourcepub fn set_snapshot_create_time(self, input: Option<String>) -> Self
pub fn set_snapshot_create_time(self, input: Option<String>) -> Self
When the snapshot was taken in Coordinated Universal Time (UTC).
sourcepub fn get_snapshot_create_time(&self) -> &Option<String>
pub fn get_snapshot_create_time(&self) -> &Option<String>
When the snapshot was taken in Coordinated Universal Time (UTC).
sourcepub fn engine(self, input: impl Into<String>) -> Self
pub fn engine(self, input: impl Into<String>) -> Self
The name of the database engine to use for this DB instance. Valid values are as follows:
-
aurora -
aurora-mysql -
aurora-postgresql -
c -
mariadb -
mysql -
oracle-ee -
oracle-se -
oracle-se1 -
oracle-se2 -
sqlserver-ee -
sqlserver-ex -
sqlserver-se -
sqlserver-web
sourcepub fn set_engine(self, input: Option<String>) -> Self
pub fn set_engine(self, input: Option<String>) -> Self
The name of the database engine to use for this DB instance. Valid values are as follows:
-
aurora -
aurora-mysql -
aurora-postgresql -
c -
mariadb -
mysql -
oracle-ee -
oracle-se -
oracle-se1 -
oracle-se2 -
sqlserver-ee -
sqlserver-ex -
sqlserver-se -
sqlserver-web
sourcepub fn get_engine(&self) -> &Option<String>
pub fn get_engine(&self) -> &Option<String>
The name of the database engine to use for this DB instance. Valid values are as follows:
-
aurora -
aurora-mysql -
aurora-postgresql -
c -
mariadb -
mysql -
oracle-ee -
oracle-se -
oracle-se1 -
oracle-se2 -
sqlserver-ee -
sqlserver-ex -
sqlserver-se -
sqlserver-web
sourcepub fn allocated_storage(self, input: i32) -> Self
pub fn allocated_storage(self, input: i32) -> Self
The amount of storage (in gigabytes) to be initially allocated for the database instance.
sourcepub fn set_allocated_storage(self, input: Option<i32>) -> Self
pub fn set_allocated_storage(self, input: Option<i32>) -> Self
The amount of storage (in gigabytes) to be initially allocated for the database instance.
sourcepub fn get_allocated_storage(&self) -> &Option<i32>
pub fn get_allocated_storage(&self) -> &Option<i32>
The amount of storage (in gigabytes) to be initially allocated for the database instance.
sourcepub fn set_status(self, input: Option<String>) -> Self
pub fn set_status(self, input: Option<String>) -> Self
The status of this DB snapshot.
sourcepub fn get_status(&self) -> &Option<String>
pub fn get_status(&self) -> &Option<String>
The status of this DB snapshot.
sourcepub fn port(self, input: i32) -> Self
pub fn port(self, input: i32) -> Self
The port that the database engine was listening on at the time of the snapshot.
sourcepub fn set_port(self, input: Option<i32>) -> Self
pub fn set_port(self, input: Option<i32>) -> Self
The port that the database engine was listening on at the time of the snapshot.
sourcepub fn get_port(&self) -> &Option<i32>
pub fn get_port(&self) -> &Option<i32>
The port that the database engine was listening on at the time of the snapshot.
sourcepub fn availability_zone(self, input: impl Into<String>) -> Self
pub fn availability_zone(self, input: impl Into<String>) -> Self
Specifies the name of the Availability Zone in which the DB instance was located at the time of the DB snapshot.
sourcepub fn set_availability_zone(self, input: Option<String>) -> Self
pub fn set_availability_zone(self, input: Option<String>) -> Self
Specifies the name of the Availability Zone in which the DB instance was located at the time of the DB snapshot.
sourcepub fn get_availability_zone(&self) -> &Option<String>
pub fn get_availability_zone(&self) -> &Option<String>
Specifies the name of the Availability Zone in which the DB instance was located at the time of the DB snapshot.
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The VPC ID associated with the DB snapshot.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The VPC ID associated with the DB snapshot.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The VPC ID associated with the DB snapshot.
sourcepub fn instance_create_time(self, input: impl Into<String>) -> Self
pub fn instance_create_time(self, input: impl Into<String>) -> Self
Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.
sourcepub fn set_instance_create_time(self, input: Option<String>) -> Self
pub fn set_instance_create_time(self, input: Option<String>) -> Self
Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.
sourcepub fn get_instance_create_time(&self) -> &Option<String>
pub fn get_instance_create_time(&self) -> &Option<String>
Specifies the time in Coordinated Universal Time (UTC) when the DB instance, from which the snapshot was taken, was created.
sourcepub fn master_username(self, input: impl Into<String>) -> Self
pub fn master_username(self, input: impl Into<String>) -> Self
The master user name for the DB snapshot.
sourcepub fn set_master_username(self, input: Option<String>) -> Self
pub fn set_master_username(self, input: Option<String>) -> Self
The master user name for the DB snapshot.
sourcepub fn get_master_username(&self) -> &Option<String>
pub fn get_master_username(&self) -> &Option<String>
The master user name for the DB snapshot.
sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
The version of the database engine.
sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
The version of the database engine.
sourcepub fn get_engine_version(&self) -> &Option<String>
pub fn get_engine_version(&self) -> &Option<String>
The version of the database engine.
sourcepub fn license_model(self, input: impl Into<String>) -> Self
pub fn license_model(self, input: impl Into<String>) -> Self
License model information for the restored DB instance.
sourcepub fn set_license_model(self, input: Option<String>) -> Self
pub fn set_license_model(self, input: Option<String>) -> Self
License model information for the restored DB instance.
sourcepub fn get_license_model(&self) -> &Option<String>
pub fn get_license_model(&self) -> &Option<String>
License model information for the restored DB instance.
sourcepub fn snapshot_type(self, input: impl Into<String>) -> Self
pub fn snapshot_type(self, input: impl Into<String>) -> Self
The type of the DB snapshot.
sourcepub fn set_snapshot_type(self, input: Option<String>) -> Self
pub fn set_snapshot_type(self, input: Option<String>) -> Self
The type of the DB snapshot.
sourcepub fn get_snapshot_type(&self) -> &Option<String>
pub fn get_snapshot_type(&self) -> &Option<String>
The type of the DB snapshot.
sourcepub fn iops(self, input: i32) -> Self
pub fn iops(self, input: i32) -> Self
The provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
sourcepub fn set_iops(self, input: Option<i32>) -> Self
pub fn set_iops(self, input: Option<i32>) -> Self
The provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
sourcepub fn get_iops(&self) -> &Option<i32>
pub fn get_iops(&self) -> &Option<i32>
The provisioned IOPS (I/O operations per second) value of the DB instance at the time of the snapshot.
sourcepub fn option_group_name(self, input: impl Into<String>) -> Self
pub fn option_group_name(self, input: impl Into<String>) -> Self
The option group name for the DB snapshot.
sourcepub fn set_option_group_name(self, input: Option<String>) -> Self
pub fn set_option_group_name(self, input: Option<String>) -> Self
The option group name for the DB snapshot.
sourcepub fn get_option_group_name(&self) -> &Option<String>
pub fn get_option_group_name(&self) -> &Option<String>
The option group name for the DB snapshot.
sourcepub fn percent_progress(self, input: i32) -> Self
pub fn percent_progress(self, input: i32) -> Self
The percentage of the estimated data that has been transferred.
sourcepub fn set_percent_progress(self, input: Option<i32>) -> Self
pub fn set_percent_progress(self, input: Option<i32>) -> Self
The percentage of the estimated data that has been transferred.
sourcepub fn get_percent_progress(&self) -> &Option<i32>
pub fn get_percent_progress(&self) -> &Option<i32>
The percentage of the estimated data that has been transferred.
sourcepub fn source_region(self, input: impl Into<String>) -> Self
pub fn source_region(self, input: impl Into<String>) -> Self
The Amazon Web Services Region that the DB snapshot was created in or copied from.
sourcepub fn set_source_region(self, input: Option<String>) -> Self
pub fn set_source_region(self, input: Option<String>) -> Self
The Amazon Web Services Region that the DB snapshot was created in or copied from.
sourcepub fn get_source_region(&self) -> &Option<String>
pub fn get_source_region(&self) -> &Option<String>
The Amazon Web Services Region that the DB snapshot was created in or copied from.
sourcepub fn source_db_snapshot_identifier(self, input: impl Into<String>) -> Self
pub fn source_db_snapshot_identifier(self, input: impl Into<String>) -> Self
The DB snapshot ARN that the DB snapshot was copied from.
sourcepub fn set_source_db_snapshot_identifier(self, input: Option<String>) -> Self
pub fn set_source_db_snapshot_identifier(self, input: Option<String>) -> Self
The DB snapshot ARN that the DB snapshot was copied from.
sourcepub fn get_source_db_snapshot_identifier(&self) -> &Option<String>
pub fn get_source_db_snapshot_identifier(&self) -> &Option<String>
The DB snapshot ARN that the DB snapshot was copied from.
sourcepub fn storage_type(self, input: impl Into<String>) -> Self
pub fn storage_type(self, input: impl Into<String>) -> Self
The storage type associated with the DB snapshot. Valid values are as follows:
-
gp2 -
io1 -
standard
sourcepub fn set_storage_type(self, input: Option<String>) -> Self
pub fn set_storage_type(self, input: Option<String>) -> Self
The storage type associated with the DB snapshot. Valid values are as follows:
-
gp2 -
io1 -
standard
sourcepub fn get_storage_type(&self) -> &Option<String>
pub fn get_storage_type(&self) -> &Option<String>
The storage type associated with the DB snapshot. Valid values are as follows:
-
gp2 -
io1 -
standard
sourcepub fn tde_credential_arn(self, input: impl Into<String>) -> Self
pub fn tde_credential_arn(self, input: impl Into<String>) -> Self
The ARN from the key store with which to associate the instance for TDE encryption.
sourcepub fn set_tde_credential_arn(self, input: Option<String>) -> Self
pub fn set_tde_credential_arn(self, input: Option<String>) -> Self
The ARN from the key store with which to associate the instance for TDE encryption.
sourcepub fn get_tde_credential_arn(&self) -> &Option<String>
pub fn get_tde_credential_arn(&self) -> &Option<String>
The ARN from the key store with which to associate the instance for TDE encryption.
sourcepub fn set_encrypted(self, input: Option<bool>) -> Self
pub fn set_encrypted(self, input: Option<bool>) -> Self
Whether the DB snapshot is encrypted.
sourcepub fn get_encrypted(&self) -> &Option<bool>
pub fn get_encrypted(&self) -> &Option<bool>
Whether the DB snapshot is encrypted.
sourcepub fn kms_key_id(self, input: impl Into<String>) -> Self
pub fn kms_key_id(self, input: impl Into<String>) -> Self
If Encrypted is true, the KMS key identifier for the encrypted DB snapshot.
sourcepub fn set_kms_key_id(self, input: Option<String>) -> Self
pub fn set_kms_key_id(self, input: Option<String>) -> Self
If Encrypted is true, the KMS key identifier for the encrypted DB snapshot.
sourcepub fn get_kms_key_id(&self) -> &Option<String>
pub fn get_kms_key_id(&self) -> &Option<String>
If Encrypted is true, the KMS key identifier for the encrypted DB snapshot.
sourcepub fn set_timezone(self, input: Option<String>) -> Self
pub fn set_timezone(self, input: Option<String>) -> Self
The time zone of the DB snapshot.
sourcepub fn get_timezone(&self) -> &Option<String>
pub fn get_timezone(&self) -> &Option<String>
The time zone of the DB snapshot.
sourcepub fn iam_database_authentication_enabled(self, input: bool) -> Self
pub fn iam_database_authentication_enabled(self, input: bool) -> Self
Whether mapping of IAM accounts to database accounts is enabled.
sourcepub fn set_iam_database_authentication_enabled(
self,
input: Option<bool>,
) -> Self
pub fn set_iam_database_authentication_enabled( self, input: Option<bool>, ) -> Self
Whether mapping of IAM accounts to database accounts is enabled.
sourcepub fn get_iam_database_authentication_enabled(&self) -> &Option<bool>
pub fn get_iam_database_authentication_enabled(&self) -> &Option<bool>
Whether mapping of IAM accounts to database accounts is enabled.
sourcepub fn processor_features(self, input: AwsRdsDbProcessorFeature) -> Self
pub fn processor_features(self, input: AwsRdsDbProcessorFeature) -> Self
Appends an item to processor_features.
To override the contents of this collection use set_processor_features.
The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.
sourcepub fn set_processor_features(
self,
input: Option<Vec<AwsRdsDbProcessorFeature>>,
) -> Self
pub fn set_processor_features( self, input: Option<Vec<AwsRdsDbProcessorFeature>>, ) -> Self
The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.
sourcepub fn get_processor_features(&self) -> &Option<Vec<AwsRdsDbProcessorFeature>>
pub fn get_processor_features(&self) -> &Option<Vec<AwsRdsDbProcessorFeature>>
The number of CPU cores and the number of threads per core for the DB instance class of the DB instance.
sourcepub fn dbi_resource_id(self, input: impl Into<String>) -> Self
pub fn dbi_resource_id(self, input: impl Into<String>) -> Self
The identifier for the source DB instance.
sourcepub fn set_dbi_resource_id(self, input: Option<String>) -> Self
pub fn set_dbi_resource_id(self, input: Option<String>) -> Self
The identifier for the source DB instance.
sourcepub fn get_dbi_resource_id(&self) -> &Option<String>
pub fn get_dbi_resource_id(&self) -> &Option<String>
The identifier for the source DB instance.
sourcepub fn build(self) -> AwsRdsDbSnapshotDetails
pub fn build(self) -> AwsRdsDbSnapshotDetails
Consumes the builder and constructs a AwsRdsDbSnapshotDetails.
Trait Implementations§
source§impl Clone for AwsRdsDbSnapshotDetailsBuilder
impl Clone for AwsRdsDbSnapshotDetailsBuilder
source§fn clone(&self) -> AwsRdsDbSnapshotDetailsBuilder
fn clone(&self) -> AwsRdsDbSnapshotDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for AwsRdsDbSnapshotDetailsBuilder
impl Default for AwsRdsDbSnapshotDetailsBuilder
source§fn default() -> AwsRdsDbSnapshotDetailsBuilder
fn default() -> AwsRdsDbSnapshotDetailsBuilder
source§impl PartialEq for AwsRdsDbSnapshotDetailsBuilder
impl PartialEq for AwsRdsDbSnapshotDetailsBuilder
source§fn eq(&self, other: &AwsRdsDbSnapshotDetailsBuilder) -> bool
fn eq(&self, other: &AwsRdsDbSnapshotDetailsBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AwsRdsDbSnapshotDetailsBuilder
Auto Trait Implementations§
impl Freeze for AwsRdsDbSnapshotDetailsBuilder
impl RefUnwindSafe for AwsRdsDbSnapshotDetailsBuilder
impl Send for AwsRdsDbSnapshotDetailsBuilder
impl Sync for AwsRdsDbSnapshotDetailsBuilder
impl Unpin for AwsRdsDbSnapshotDetailsBuilder
impl UnwindSafe for AwsRdsDbSnapshotDetailsBuilder
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 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>
Returns self with the
fg()
set to
Color::BrightBlack.
§Example
println!("{}", value.bright_black());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>
Returns self with the
fg()
set to
Color::BrightGreen.
§Example
println!("{}", value.bright_green());source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Returns self with the
fg()
set to
Color::BrightYellow.
§Example
println!("{}", value.bright_yellow());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>
Returns self with the
fg()
set to
Color::BrightMagenta.
§Example
println!("{}", value.bright_magenta());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>
Returns self with the
fg()
set to
Color::BrightWhite.
§Example
println!("{}", value.bright_white());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>
Returns self with the
bg()
set to
Color::BrightBlack.
§Example
println!("{}", value.on_bright_black());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>
Returns self with the
bg()
set to
Color::BrightGreen.
§Example
println!("{}", value.on_bright_green());source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightYellow.
§Example
println!("{}", value.on_bright_yellow());source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightBlue.
§Example
println!("{}", value.on_bright_blue());source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightMagenta.
§Example
println!("{}", value.on_bright_magenta());source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightCyan.
§Example
println!("{}", value.on_bright_cyan());source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Returns self with the
bg()
set to
Color::BrightWhite.
§Example
println!("{}", value.on_bright_white());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 underline(&self) -> Painted<&T>
fn underline(&self) -> Painted<&T>
Returns self with the
attr()
set to
Attribute::Underline.
§Example
println!("{}", value.underline());source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Returns self with the
attr()
set to
Attribute::RapidBlink.
§Example
println!("{}", value.rapid_blink());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);