#[non_exhaustive]pub struct DescribeBrokerOutputBuilder { /* private fields */ }
Expand description
A builder for DescribeBrokerOutput
.
Implementations§
Source§impl DescribeBrokerOutputBuilder
impl DescribeBrokerOutputBuilder
Sourcepub fn actions_required(self, input: ActionRequired) -> Self
pub fn actions_required(self, input: ActionRequired) -> Self
Appends an item to actions_required
.
To override the contents of this collection use set_actions_required
.
Actions required for a broker.
Sourcepub fn set_actions_required(self, input: Option<Vec<ActionRequired>>) -> Self
pub fn set_actions_required(self, input: Option<Vec<ActionRequired>>) -> Self
Actions required for a broker.
Sourcepub fn get_actions_required(&self) -> &Option<Vec<ActionRequired>>
pub fn get_actions_required(&self) -> &Option<Vec<ActionRequired>>
Actions required for a broker.
Sourcepub fn authentication_strategy(self, input: AuthenticationStrategy) -> Self
pub fn authentication_strategy(self, input: AuthenticationStrategy) -> Self
The authentication strategy used to secure the broker. The default is SIMPLE.
Sourcepub fn set_authentication_strategy(
self,
input: Option<AuthenticationStrategy>,
) -> Self
pub fn set_authentication_strategy( self, input: Option<AuthenticationStrategy>, ) -> Self
The authentication strategy used to secure the broker. The default is SIMPLE.
Sourcepub fn get_authentication_strategy(&self) -> &Option<AuthenticationStrategy>
pub fn get_authentication_strategy(&self) -> &Option<AuthenticationStrategy>
The authentication strategy used to secure the broker. The default is SIMPLE.
Sourcepub fn auto_minor_version_upgrade(self, input: bool) -> Self
pub fn auto_minor_version_upgrade(self, input: bool) -> Self
Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker reboot.
Sourcepub fn set_auto_minor_version_upgrade(self, input: Option<bool>) -> Self
pub fn set_auto_minor_version_upgrade(self, input: Option<bool>) -> Self
Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker reboot.
Sourcepub fn get_auto_minor_version_upgrade(&self) -> &Option<bool>
pub fn get_auto_minor_version_upgrade(&self) -> &Option<bool>
Enables automatic upgrades to new patch versions for brokers as new versions are released and supported by Amazon MQ. Automatic upgrades occur during the scheduled maintenance window or after a manual broker reboot.
Sourcepub fn broker_arn(self, input: impl Into<String>) -> Self
pub fn broker_arn(self, input: impl Into<String>) -> Self
The broker's Amazon Resource Name (ARN).
Sourcepub fn set_broker_arn(self, input: Option<String>) -> Self
pub fn set_broker_arn(self, input: Option<String>) -> Self
The broker's Amazon Resource Name (ARN).
Sourcepub fn get_broker_arn(&self) -> &Option<String>
pub fn get_broker_arn(&self) -> &Option<String>
The broker's Amazon Resource Name (ARN).
Sourcepub fn broker_id(self, input: impl Into<String>) -> Self
pub fn broker_id(self, input: impl Into<String>) -> Self
The unique ID that Amazon MQ generates for the broker.
Sourcepub fn set_broker_id(self, input: Option<String>) -> Self
pub fn set_broker_id(self, input: Option<String>) -> Self
The unique ID that Amazon MQ generates for the broker.
Sourcepub fn get_broker_id(&self) -> &Option<String>
pub fn get_broker_id(&self) -> &Option<String>
The unique ID that Amazon MQ generates for the broker.
Sourcepub fn broker_instances(self, input: BrokerInstance) -> Self
pub fn broker_instances(self, input: BrokerInstance) -> Self
Appends an item to broker_instances
.
To override the contents of this collection use set_broker_instances
.
A list of information about allocated brokers.
Sourcepub fn set_broker_instances(self, input: Option<Vec<BrokerInstance>>) -> Self
pub fn set_broker_instances(self, input: Option<Vec<BrokerInstance>>) -> Self
A list of information about allocated brokers.
Sourcepub fn get_broker_instances(&self) -> &Option<Vec<BrokerInstance>>
pub fn get_broker_instances(&self) -> &Option<Vec<BrokerInstance>>
A list of information about allocated brokers.
Sourcepub fn broker_name(self, input: impl Into<String>) -> Self
pub fn broker_name(self, input: impl Into<String>) -> Self
The broker's name. This value must be unique in your Amazon Web Services account account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.
Sourcepub fn set_broker_name(self, input: Option<String>) -> Self
pub fn set_broker_name(self, input: Option<String>) -> Self
The broker's name. This value must be unique in your Amazon Web Services account account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.
Sourcepub fn get_broker_name(&self) -> &Option<String>
pub fn get_broker_name(&self) -> &Option<String>
The broker's name. This value must be unique in your Amazon Web Services account account, 1-50 characters long, must contain only letters, numbers, dashes, and underscores, and must not contain white spaces, brackets, wildcard characters, or special characters.
Sourcepub fn broker_state(self, input: BrokerState) -> Self
pub fn broker_state(self, input: BrokerState) -> Self
The broker's status.
Sourcepub fn set_broker_state(self, input: Option<BrokerState>) -> Self
pub fn set_broker_state(self, input: Option<BrokerState>) -> Self
The broker's status.
Sourcepub fn get_broker_state(&self) -> &Option<BrokerState>
pub fn get_broker_state(&self) -> &Option<BrokerState>
The broker's status.
Sourcepub fn configurations(self, input: Configurations) -> Self
pub fn configurations(self, input: Configurations) -> Self
The list of all revisions for the specified configuration.
Sourcepub fn set_configurations(self, input: Option<Configurations>) -> Self
pub fn set_configurations(self, input: Option<Configurations>) -> Self
The list of all revisions for the specified configuration.
Sourcepub fn get_configurations(&self) -> &Option<Configurations>
pub fn get_configurations(&self) -> &Option<Configurations>
The list of all revisions for the specified configuration.
Sourcepub fn set_created(self, input: Option<DateTime>) -> Self
pub fn set_created(self, input: Option<DateTime>) -> Self
The time when the broker was created.
Sourcepub fn get_created(&self) -> &Option<DateTime>
pub fn get_created(&self) -> &Option<DateTime>
The time when the broker was created.
Sourcepub fn deployment_mode(self, input: DeploymentMode) -> Self
pub fn deployment_mode(self, input: DeploymentMode) -> Self
The broker's deployment mode.
Sourcepub fn set_deployment_mode(self, input: Option<DeploymentMode>) -> Self
pub fn set_deployment_mode(self, input: Option<DeploymentMode>) -> Self
The broker's deployment mode.
Sourcepub fn get_deployment_mode(&self) -> &Option<DeploymentMode>
pub fn get_deployment_mode(&self) -> &Option<DeploymentMode>
The broker's deployment mode.
Sourcepub fn encryption_options(self, input: EncryptionOptions) -> Self
pub fn encryption_options(self, input: EncryptionOptions) -> Self
Encryption options for the broker.
Sourcepub fn set_encryption_options(self, input: Option<EncryptionOptions>) -> Self
pub fn set_encryption_options(self, input: Option<EncryptionOptions>) -> Self
Encryption options for the broker.
Sourcepub fn get_encryption_options(&self) -> &Option<EncryptionOptions>
pub fn get_encryption_options(&self) -> &Option<EncryptionOptions>
Encryption options for the broker.
Sourcepub fn engine_type(self, input: EngineType) -> Self
pub fn engine_type(self, input: EngineType) -> Self
The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
Sourcepub fn set_engine_type(self, input: Option<EngineType>) -> Self
pub fn set_engine_type(self, input: Option<EngineType>) -> Self
The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
Sourcepub fn get_engine_type(&self) -> &Option<EngineType>
pub fn get_engine_type(&self) -> &Option<EngineType>
The type of broker engine. Currently, Amazon MQ supports ACTIVEMQ and RABBITMQ.
Sourcepub fn engine_version(self, input: impl Into<String>) -> Self
pub fn engine_version(self, input: impl Into<String>) -> Self
The broker engine version. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide.
Sourcepub fn set_engine_version(self, input: Option<String>) -> Self
pub fn set_engine_version(self, input: Option<String>) -> Self
The broker engine version. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide.
Sourcepub fn get_engine_version(&self) -> &Option<String>
pub fn get_engine_version(&self) -> &Option<String>
The broker engine version. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide.
Sourcepub fn host_instance_type(self, input: impl Into<String>) -> Self
pub fn host_instance_type(self, input: impl Into<String>) -> Self
The broker's instance type.
Sourcepub fn set_host_instance_type(self, input: Option<String>) -> Self
pub fn set_host_instance_type(self, input: Option<String>) -> Self
The broker's instance type.
Sourcepub fn get_host_instance_type(&self) -> &Option<String>
pub fn get_host_instance_type(&self) -> &Option<String>
The broker's instance type.
Sourcepub fn ldap_server_metadata(self, input: LdapServerMetadataOutput) -> Self
pub fn ldap_server_metadata(self, input: LdapServerMetadataOutput) -> Self
The metadata of the LDAP server used to authenticate and authorize connections to the broker.
Sourcepub fn set_ldap_server_metadata(
self,
input: Option<LdapServerMetadataOutput>,
) -> Self
pub fn set_ldap_server_metadata( self, input: Option<LdapServerMetadataOutput>, ) -> Self
The metadata of the LDAP server used to authenticate and authorize connections to the broker.
Sourcepub fn get_ldap_server_metadata(&self) -> &Option<LdapServerMetadataOutput>
pub fn get_ldap_server_metadata(&self) -> &Option<LdapServerMetadataOutput>
The metadata of the LDAP server used to authenticate and authorize connections to the broker.
Sourcepub fn logs(self, input: LogsSummary) -> Self
pub fn logs(self, input: LogsSummary) -> Self
The list of information about logs currently enabled and pending to be deployed for the specified broker.
Sourcepub fn set_logs(self, input: Option<LogsSummary>) -> Self
pub fn set_logs(self, input: Option<LogsSummary>) -> Self
The list of information about logs currently enabled and pending to be deployed for the specified broker.
Sourcepub fn get_logs(&self) -> &Option<LogsSummary>
pub fn get_logs(&self) -> &Option<LogsSummary>
The list of information about logs currently enabled and pending to be deployed for the specified broker.
Sourcepub fn maintenance_window_start_time(self, input: WeeklyStartTime) -> Self
pub fn maintenance_window_start_time(self, input: WeeklyStartTime) -> Self
The parameters that determine the WeeklyStartTime.
Sourcepub fn set_maintenance_window_start_time(
self,
input: Option<WeeklyStartTime>,
) -> Self
pub fn set_maintenance_window_start_time( self, input: Option<WeeklyStartTime>, ) -> Self
The parameters that determine the WeeklyStartTime.
Sourcepub fn get_maintenance_window_start_time(&self) -> &Option<WeeklyStartTime>
pub fn get_maintenance_window_start_time(&self) -> &Option<WeeklyStartTime>
The parameters that determine the WeeklyStartTime.
Sourcepub fn pending_authentication_strategy(
self,
input: AuthenticationStrategy,
) -> Self
pub fn pending_authentication_strategy( self, input: AuthenticationStrategy, ) -> Self
The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.
Sourcepub fn set_pending_authentication_strategy(
self,
input: Option<AuthenticationStrategy>,
) -> Self
pub fn set_pending_authentication_strategy( self, input: Option<AuthenticationStrategy>, ) -> Self
The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.
Sourcepub fn get_pending_authentication_strategy(
&self,
) -> &Option<AuthenticationStrategy>
pub fn get_pending_authentication_strategy( &self, ) -> &Option<AuthenticationStrategy>
The authentication strategy that will be applied when the broker is rebooted. The default is SIMPLE.
Sourcepub fn pending_engine_version(self, input: impl Into<String>) -> Self
pub fn pending_engine_version(self, input: impl Into<String>) -> Self
The broker engine version to upgrade to. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide.
Sourcepub fn set_pending_engine_version(self, input: Option<String>) -> Self
pub fn set_pending_engine_version(self, input: Option<String>) -> Self
The broker engine version to upgrade to. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide.
Sourcepub fn get_pending_engine_version(&self) -> &Option<String>
pub fn get_pending_engine_version(&self) -> &Option<String>
The broker engine version to upgrade to. For more information, see the ActiveMQ version management and the RabbitMQ version management sections in the Amazon MQ Developer Guide.
Sourcepub fn pending_host_instance_type(self, input: impl Into<String>) -> Self
pub fn pending_host_instance_type(self, input: impl Into<String>) -> Self
The broker's host instance type to upgrade to. For a list of supported instance types, see Broker instance types.
Sourcepub fn set_pending_host_instance_type(self, input: Option<String>) -> Self
pub fn set_pending_host_instance_type(self, input: Option<String>) -> Self
The broker's host instance type to upgrade to. For a list of supported instance types, see Broker instance types.
Sourcepub fn get_pending_host_instance_type(&self) -> &Option<String>
pub fn get_pending_host_instance_type(&self) -> &Option<String>
The broker's host instance type to upgrade to. For a list of supported instance types, see Broker instance types.
Sourcepub fn pending_ldap_server_metadata(
self,
input: LdapServerMetadataOutput,
) -> Self
pub fn pending_ldap_server_metadata( self, input: LdapServerMetadataOutput, ) -> Self
The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.
Sourcepub fn set_pending_ldap_server_metadata(
self,
input: Option<LdapServerMetadataOutput>,
) -> Self
pub fn set_pending_ldap_server_metadata( self, input: Option<LdapServerMetadataOutput>, ) -> Self
The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.
Sourcepub fn get_pending_ldap_server_metadata(
&self,
) -> &Option<LdapServerMetadataOutput>
pub fn get_pending_ldap_server_metadata( &self, ) -> &Option<LdapServerMetadataOutput>
The metadata of the LDAP server that will be used to authenticate and authorize connections to the broker after it is rebooted.
Sourcepub fn pending_security_groups(self, input: impl Into<String>) -> Self
pub fn pending_security_groups(self, input: impl Into<String>) -> Self
Appends an item to pending_security_groups
.
To override the contents of this collection use set_pending_security_groups
.
The list of pending security groups to authorize connections to brokers.
Sourcepub fn set_pending_security_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_pending_security_groups(self, input: Option<Vec<String>>) -> Self
The list of pending security groups to authorize connections to brokers.
Sourcepub fn get_pending_security_groups(&self) -> &Option<Vec<String>>
pub fn get_pending_security_groups(&self) -> &Option<Vec<String>>
The list of pending security groups to authorize connections to brokers.
Sourcepub fn publicly_accessible(self, input: bool) -> Self
pub fn publicly_accessible(self, input: bool) -> Self
Enables connections from applications outside of the VPC that hosts the broker's subnets.
Sourcepub fn set_publicly_accessible(self, input: Option<bool>) -> Self
pub fn set_publicly_accessible(self, input: Option<bool>) -> Self
Enables connections from applications outside of the VPC that hosts the broker's subnets.
Sourcepub fn get_publicly_accessible(&self) -> &Option<bool>
pub fn get_publicly_accessible(&self) -> &Option<bool>
Enables connections from applications outside of the VPC that hosts the broker's subnets.
Sourcepub fn security_groups(self, input: impl Into<String>) -> Self
pub fn security_groups(self, input: impl Into<String>) -> Self
Appends an item to security_groups
.
To override the contents of this collection use set_security_groups
.
The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
Sourcepub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
pub fn set_security_groups(self, input: Option<Vec<String>>) -> Self
The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
Sourcepub fn get_security_groups(&self) -> &Option<Vec<String>>
pub fn get_security_groups(&self) -> &Option<Vec<String>>
The list of rules (1 minimum, 125 maximum) that authorize connections to brokers.
Sourcepub fn storage_type(self, input: BrokerStorageType) -> Self
pub fn storage_type(self, input: BrokerStorageType) -> Self
The broker's storage type.
Sourcepub fn set_storage_type(self, input: Option<BrokerStorageType>) -> Self
pub fn set_storage_type(self, input: Option<BrokerStorageType>) -> Self
The broker's storage type.
Sourcepub fn get_storage_type(&self) -> &Option<BrokerStorageType>
pub fn get_storage_type(&self) -> &Option<BrokerStorageType>
The broker's storage type.
Sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids
.
To override the contents of this collection use set_subnet_ids
.
The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.
Sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.
Sourcepub fn get_subnet_ids(&self) -> &Option<Vec<String>>
pub fn get_subnet_ids(&self) -> &Option<Vec<String>>
The list of groups that define which subnets and IP ranges the broker can use from different Availability Zones.
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The list of all tags associated with this broker.
The list of all tags associated with this broker.
The list of all tags associated with this broker.
Sourcepub fn users(self, input: UserSummary) -> Self
pub fn users(self, input: UserSummary) -> Self
Appends an item to users
.
To override the contents of this collection use set_users
.
The list of all broker usernames for the specified broker.
Sourcepub fn set_users(self, input: Option<Vec<UserSummary>>) -> Self
pub fn set_users(self, input: Option<Vec<UserSummary>>) -> Self
The list of all broker usernames for the specified broker.
Sourcepub fn get_users(&self) -> &Option<Vec<UserSummary>>
pub fn get_users(&self) -> &Option<Vec<UserSummary>>
The list of all broker usernames for the specified broker.
Sourcepub fn data_replication_metadata(
self,
input: DataReplicationMetadataOutput,
) -> Self
pub fn data_replication_metadata( self, input: DataReplicationMetadataOutput, ) -> Self
The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to CRDR.
Sourcepub fn set_data_replication_metadata(
self,
input: Option<DataReplicationMetadataOutput>,
) -> Self
pub fn set_data_replication_metadata( self, input: Option<DataReplicationMetadataOutput>, ) -> Self
The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to CRDR.
Sourcepub fn get_data_replication_metadata(
&self,
) -> &Option<DataReplicationMetadataOutput>
pub fn get_data_replication_metadata( &self, ) -> &Option<DataReplicationMetadataOutput>
The replication details of the data replication-enabled broker. Only returned if dataReplicationMode is set to CRDR.
Sourcepub fn data_replication_mode(self, input: DataReplicationMode) -> Self
pub fn data_replication_mode(self, input: DataReplicationMode) -> Self
Describes whether this broker is a part of a data replication pair.
Sourcepub fn set_data_replication_mode(
self,
input: Option<DataReplicationMode>,
) -> Self
pub fn set_data_replication_mode( self, input: Option<DataReplicationMode>, ) -> Self
Describes whether this broker is a part of a data replication pair.
Sourcepub fn get_data_replication_mode(&self) -> &Option<DataReplicationMode>
pub fn get_data_replication_mode(&self) -> &Option<DataReplicationMode>
Describes whether this broker is a part of a data replication pair.
Sourcepub fn pending_data_replication_metadata(
self,
input: DataReplicationMetadataOutput,
) -> Self
pub fn pending_data_replication_metadata( self, input: DataReplicationMetadataOutput, ) -> Self
The pending replication details of the data replication-enabled broker. Only returned if pendingDataReplicationMode is set to CRDR.
Sourcepub fn set_pending_data_replication_metadata(
self,
input: Option<DataReplicationMetadataOutput>,
) -> Self
pub fn set_pending_data_replication_metadata( self, input: Option<DataReplicationMetadataOutput>, ) -> Self
The pending replication details of the data replication-enabled broker. Only returned if pendingDataReplicationMode is set to CRDR.
Sourcepub fn get_pending_data_replication_metadata(
&self,
) -> &Option<DataReplicationMetadataOutput>
pub fn get_pending_data_replication_metadata( &self, ) -> &Option<DataReplicationMetadataOutput>
The pending replication details of the data replication-enabled broker. Only returned if pendingDataReplicationMode is set to CRDR.
Sourcepub fn pending_data_replication_mode(self, input: DataReplicationMode) -> Self
pub fn pending_data_replication_mode(self, input: DataReplicationMode) -> Self
Describes whether this broker will be a part of a data replication pair after reboot.
Sourcepub fn set_pending_data_replication_mode(
self,
input: Option<DataReplicationMode>,
) -> Self
pub fn set_pending_data_replication_mode( self, input: Option<DataReplicationMode>, ) -> Self
Describes whether this broker will be a part of a data replication pair after reboot.
Sourcepub fn get_pending_data_replication_mode(&self) -> &Option<DataReplicationMode>
pub fn get_pending_data_replication_mode(&self) -> &Option<DataReplicationMode>
Describes whether this broker will be a part of a data replication pair after reboot.
Sourcepub fn build(self) -> DescribeBrokerOutput
pub fn build(self) -> DescribeBrokerOutput
Consumes the builder and constructs a DescribeBrokerOutput
.
Trait Implementations§
Source§impl Clone for DescribeBrokerOutputBuilder
impl Clone for DescribeBrokerOutputBuilder
Source§fn clone(&self) -> DescribeBrokerOutputBuilder
fn clone(&self) -> DescribeBrokerOutputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DescribeBrokerOutputBuilder
impl Debug for DescribeBrokerOutputBuilder
Source§impl Default for DescribeBrokerOutputBuilder
impl Default for DescribeBrokerOutputBuilder
Source§fn default() -> DescribeBrokerOutputBuilder
fn default() -> DescribeBrokerOutputBuilder
impl StructuralPartialEq for DescribeBrokerOutputBuilder
Auto Trait Implementations§
impl Freeze for DescribeBrokerOutputBuilder
impl RefUnwindSafe for DescribeBrokerOutputBuilder
impl Send for DescribeBrokerOutputBuilder
impl Sync for DescribeBrokerOutputBuilder
impl Unpin for DescribeBrokerOutputBuilder
impl UnwindSafe for DescribeBrokerOutputBuilder
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);