#[non_exhaustive]pub struct CreateKxClusterOutputBuilder { /* private fields */ }
Expand description
A builder for CreateKxClusterOutput
.
Implementations§
Source§impl CreateKxClusterOutputBuilder
impl CreateKxClusterOutputBuilder
Sourcepub fn environment_id(self, input: impl Into<String>) -> Self
pub fn environment_id(self, input: impl Into<String>) -> Self
A unique identifier for the kdb environment.
Sourcepub fn set_environment_id(self, input: Option<String>) -> Self
pub fn set_environment_id(self, input: Option<String>) -> Self
A unique identifier for the kdb environment.
Sourcepub fn get_environment_id(&self) -> &Option<String>
pub fn get_environment_id(&self) -> &Option<String>
A unique identifier for the kdb environment.
Sourcepub fn status(self, input: KxClusterStatus) -> Self
pub fn status(self, input: KxClusterStatus) -> Self
The status of cluster creation.
-
PENDING – The cluster is pending creation.
-
CREATING – The cluster creation process is in progress.
-
CREATE_FAILED – The cluster creation process has failed.
-
RUNNING – The cluster creation process is running.
-
UPDATING – The cluster is in the process of being updated.
-
DELETING – The cluster is in the process of being deleted.
-
DELETED – The cluster has been deleted.
-
DELETE_FAILED – The cluster failed to delete.
Sourcepub fn set_status(self, input: Option<KxClusterStatus>) -> Self
pub fn set_status(self, input: Option<KxClusterStatus>) -> Self
The status of cluster creation.
-
PENDING – The cluster is pending creation.
-
CREATING – The cluster creation process is in progress.
-
CREATE_FAILED – The cluster creation process has failed.
-
RUNNING – The cluster creation process is running.
-
UPDATING – The cluster is in the process of being updated.
-
DELETING – The cluster is in the process of being deleted.
-
DELETED – The cluster has been deleted.
-
DELETE_FAILED – The cluster failed to delete.
Sourcepub fn get_status(&self) -> &Option<KxClusterStatus>
pub fn get_status(&self) -> &Option<KxClusterStatus>
The status of cluster creation.
-
PENDING – The cluster is pending creation.
-
CREATING – The cluster creation process is in progress.
-
CREATE_FAILED – The cluster creation process has failed.
-
RUNNING – The cluster creation process is running.
-
UPDATING – The cluster is in the process of being updated.
-
DELETING – The cluster is in the process of being deleted.
-
DELETED – The cluster has been deleted.
-
DELETE_FAILED – The cluster failed to delete.
Sourcepub fn status_reason(self, input: impl Into<String>) -> Self
pub fn status_reason(self, input: impl Into<String>) -> Self
The error message when a failed state occurs.
Sourcepub fn set_status_reason(self, input: Option<String>) -> Self
pub fn set_status_reason(self, input: Option<String>) -> Self
The error message when a failed state occurs.
Sourcepub fn get_status_reason(&self) -> &Option<String>
pub fn get_status_reason(&self) -> &Option<String>
The error message when a failed state occurs.
Sourcepub fn cluster_name(self, input: impl Into<String>) -> Self
pub fn cluster_name(self, input: impl Into<String>) -> Self
A unique name for the cluster.
Sourcepub fn set_cluster_name(self, input: Option<String>) -> Self
pub fn set_cluster_name(self, input: Option<String>) -> Self
A unique name for the cluster.
Sourcepub fn get_cluster_name(&self) -> &Option<String>
pub fn get_cluster_name(&self) -> &Option<String>
A unique name for the cluster.
Sourcepub fn cluster_type(self, input: KxClusterType) -> Self
pub fn cluster_type(self, input: KxClusterType) -> Self
Specifies the type of KDB database that is being created. The following types are available:
-
HDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
-
RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the
savedownStorageConfiguration
parameter. -
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
-
GP – A general purpose cluster allows you to quickly iterate on code during development by granting greater access to system commands and enabling a fast reload of custom code. This cluster type can optionally mount databases including cache and savedown storage. For this cluster type, the node count is fixed at 1. It does not support autoscaling and supports only
SINGLE
AZ mode. -
Tickerplant – A tickerplant cluster allows you to subscribe to feed handlers based on IAM permissions. It can publish to RDBs, other Tickerplants, and real-time subscribers (RTS). Tickerplants can persist messages to log, which is readable by any RDB environment. It supports only single-node that is only one kdb process.
Sourcepub fn set_cluster_type(self, input: Option<KxClusterType>) -> Self
pub fn set_cluster_type(self, input: Option<KxClusterType>) -> Self
Specifies the type of KDB database that is being created. The following types are available:
-
HDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
-
RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the
savedownStorageConfiguration
parameter. -
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
-
GP – A general purpose cluster allows you to quickly iterate on code during development by granting greater access to system commands and enabling a fast reload of custom code. This cluster type can optionally mount databases including cache and savedown storage. For this cluster type, the node count is fixed at 1. It does not support autoscaling and supports only
SINGLE
AZ mode. -
Tickerplant – A tickerplant cluster allows you to subscribe to feed handlers based on IAM permissions. It can publish to RDBs, other Tickerplants, and real-time subscribers (RTS). Tickerplants can persist messages to log, which is readable by any RDB environment. It supports only single-node that is only one kdb process.
Sourcepub fn get_cluster_type(&self) -> &Option<KxClusterType>
pub fn get_cluster_type(&self) -> &Option<KxClusterType>
Specifies the type of KDB database that is being created. The following types are available:
-
HDB – A Historical Database. The data is only accessible with read-only permissions from one of the FinSpace managed kdb databases mounted to the cluster.
-
RDB – A Realtime Database. This type of database captures all the data from a ticker plant and stores it in memory until the end of day, after which it writes all of its data to a disk and reloads the HDB. This cluster type requires local storage for temporary storage of data during the savedown process. If you specify this field in your request, you must provide the
savedownStorageConfiguration
parameter. -
GATEWAY – A gateway cluster allows you to access data across processes in kdb systems. It allows you to create your own routing logic using the initialization scripts and custom code. This type of cluster does not require a writable local storage.
-
GP – A general purpose cluster allows you to quickly iterate on code during development by granting greater access to system commands and enabling a fast reload of custom code. This cluster type can optionally mount databases including cache and savedown storage. For this cluster type, the node count is fixed at 1. It does not support autoscaling and supports only
SINGLE
AZ mode. -
Tickerplant – A tickerplant cluster allows you to subscribe to feed handlers based on IAM permissions. It can publish to RDBs, other Tickerplants, and real-time subscribers (RTS). Tickerplants can persist messages to log, which is readable by any RDB environment. It supports only single-node that is only one kdb process.
Sourcepub fn tickerplant_log_configuration(
self,
input: TickerplantLogConfiguration,
) -> Self
pub fn tickerplant_log_configuration( self, input: TickerplantLogConfiguration, ) -> Self
A configuration to store the Tickerplant logs. It consists of a list of volumes that will be mounted to your cluster. For the cluster type Tickerplant
, the location of the TP volume on the cluster will be available by using the global variable .aws.tp_log_path
.
Sourcepub fn set_tickerplant_log_configuration(
self,
input: Option<TickerplantLogConfiguration>,
) -> Self
pub fn set_tickerplant_log_configuration( self, input: Option<TickerplantLogConfiguration>, ) -> Self
A configuration to store the Tickerplant logs. It consists of a list of volumes that will be mounted to your cluster. For the cluster type Tickerplant
, the location of the TP volume on the cluster will be available by using the global variable .aws.tp_log_path
.
Sourcepub fn get_tickerplant_log_configuration(
&self,
) -> &Option<TickerplantLogConfiguration>
pub fn get_tickerplant_log_configuration( &self, ) -> &Option<TickerplantLogConfiguration>
A configuration to store the Tickerplant logs. It consists of a list of volumes that will be mounted to your cluster. For the cluster type Tickerplant
, the location of the TP volume on the cluster will be available by using the global variable .aws.tp_log_path
.
Sourcepub fn volumes(self, input: Volume) -> Self
pub fn volumes(self, input: Volume) -> Self
Appends an item to volumes
.
To override the contents of this collection use set_volumes
.
A list of volumes mounted on the cluster.
Sourcepub fn set_volumes(self, input: Option<Vec<Volume>>) -> Self
pub fn set_volumes(self, input: Option<Vec<Volume>>) -> Self
A list of volumes mounted on the cluster.
Sourcepub fn get_volumes(&self) -> &Option<Vec<Volume>>
pub fn get_volumes(&self) -> &Option<Vec<Volume>>
A list of volumes mounted on the cluster.
Sourcepub fn databases(self, input: KxDatabaseConfiguration) -> Self
pub fn databases(self, input: KxDatabaseConfiguration) -> Self
Appends an item to databases
.
To override the contents of this collection use set_databases
.
A list of databases that will be available for querying.
Sourcepub fn set_databases(self, input: Option<Vec<KxDatabaseConfiguration>>) -> Self
pub fn set_databases(self, input: Option<Vec<KxDatabaseConfiguration>>) -> Self
A list of databases that will be available for querying.
Sourcepub fn get_databases(&self) -> &Option<Vec<KxDatabaseConfiguration>>
pub fn get_databases(&self) -> &Option<Vec<KxDatabaseConfiguration>>
A list of databases that will be available for querying.
Sourcepub fn cache_storage_configurations(
self,
input: KxCacheStorageConfiguration,
) -> Self
pub fn cache_storage_configurations( self, input: KxCacheStorageConfiguration, ) -> Self
Appends an item to cache_storage_configurations
.
To override the contents of this collection use set_cache_storage_configurations
.
The configurations for a read only cache storage associated with a cluster. This cache will be stored as an FSx Lustre that reads from the S3 store.
Sourcepub fn set_cache_storage_configurations(
self,
input: Option<Vec<KxCacheStorageConfiguration>>,
) -> Self
pub fn set_cache_storage_configurations( self, input: Option<Vec<KxCacheStorageConfiguration>>, ) -> Self
The configurations for a read only cache storage associated with a cluster. This cache will be stored as an FSx Lustre that reads from the S3 store.
Sourcepub fn get_cache_storage_configurations(
&self,
) -> &Option<Vec<KxCacheStorageConfiguration>>
pub fn get_cache_storage_configurations( &self, ) -> &Option<Vec<KxCacheStorageConfiguration>>
The configurations for a read only cache storage associated with a cluster. This cache will be stored as an FSx Lustre that reads from the S3 store.
Sourcepub fn auto_scaling_configuration(self, input: AutoScalingConfiguration) -> Self
pub fn auto_scaling_configuration(self, input: AutoScalingConfiguration) -> Self
The configuration based on which FinSpace will scale in or scale out nodes in your cluster.
Sourcepub fn set_auto_scaling_configuration(
self,
input: Option<AutoScalingConfiguration>,
) -> Self
pub fn set_auto_scaling_configuration( self, input: Option<AutoScalingConfiguration>, ) -> Self
The configuration based on which FinSpace will scale in or scale out nodes in your cluster.
Sourcepub fn get_auto_scaling_configuration(
&self,
) -> &Option<AutoScalingConfiguration>
pub fn get_auto_scaling_configuration( &self, ) -> &Option<AutoScalingConfiguration>
The configuration based on which FinSpace will scale in or scale out nodes in your cluster.
Sourcepub fn cluster_description(self, input: impl Into<String>) -> Self
pub fn cluster_description(self, input: impl Into<String>) -> Self
A description of the cluster.
Sourcepub fn set_cluster_description(self, input: Option<String>) -> Self
pub fn set_cluster_description(self, input: Option<String>) -> Self
A description of the cluster.
Sourcepub fn get_cluster_description(&self) -> &Option<String>
pub fn get_cluster_description(&self) -> &Option<String>
A description of the cluster.
Sourcepub fn capacity_configuration(self, input: CapacityConfiguration) -> Self
pub fn capacity_configuration(self, input: CapacityConfiguration) -> Self
A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of instances, and number of instances.
Sourcepub fn set_capacity_configuration(
self,
input: Option<CapacityConfiguration>,
) -> Self
pub fn set_capacity_configuration( self, input: Option<CapacityConfiguration>, ) -> Self
A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of instances, and number of instances.
Sourcepub fn get_capacity_configuration(&self) -> &Option<CapacityConfiguration>
pub fn get_capacity_configuration(&self) -> &Option<CapacityConfiguration>
A structure for the metadata of a cluster. It includes information like the CPUs needed, memory of instances, and number of instances.
Sourcepub fn release_label(self, input: impl Into<String>) -> Self
pub fn release_label(self, input: impl Into<String>) -> Self
A version of the FinSpace managed kdb to run.
Sourcepub fn set_release_label(self, input: Option<String>) -> Self
pub fn set_release_label(self, input: Option<String>) -> Self
A version of the FinSpace managed kdb to run.
Sourcepub fn get_release_label(&self) -> &Option<String>
pub fn get_release_label(&self) -> &Option<String>
A version of the FinSpace managed kdb to run.
Sourcepub fn vpc_configuration(self, input: VpcConfiguration) -> Self
pub fn vpc_configuration(self, input: VpcConfiguration) -> Self
Configuration details about the network where the Privatelink endpoint of the cluster resides.
Sourcepub fn set_vpc_configuration(self, input: Option<VpcConfiguration>) -> Self
pub fn set_vpc_configuration(self, input: Option<VpcConfiguration>) -> Self
Configuration details about the network where the Privatelink endpoint of the cluster resides.
Sourcepub fn get_vpc_configuration(&self) -> &Option<VpcConfiguration>
pub fn get_vpc_configuration(&self) -> &Option<VpcConfiguration>
Configuration details about the network where the Privatelink endpoint of the cluster resides.
Sourcepub fn initialization_script(self, input: impl Into<String>) -> Self
pub fn initialization_script(self, input: impl Into<String>) -> Self
Specifies a Q program that will be run at launch of a cluster. It is a relative path within .zip file that contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example, somedir/init.q
.
Sourcepub fn set_initialization_script(self, input: Option<String>) -> Self
pub fn set_initialization_script(self, input: Option<String>) -> Self
Specifies a Q program that will be run at launch of a cluster. It is a relative path within .zip file that contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example, somedir/init.q
.
Sourcepub fn get_initialization_script(&self) -> &Option<String>
pub fn get_initialization_script(&self) -> &Option<String>
Specifies a Q program that will be run at launch of a cluster. It is a relative path within .zip file that contains the custom code, which will be loaded on the cluster. It must include the file name itself. For example, somedir/init.q
.
Sourcepub fn command_line_arguments(self, input: KxCommandLineArgument) -> Self
pub fn command_line_arguments(self, input: KxCommandLineArgument) -> Self
Appends an item to command_line_arguments
.
To override the contents of this collection use set_command_line_arguments
.
Defines the key-value pairs to make them available inside the cluster.
Sourcepub fn set_command_line_arguments(
self,
input: Option<Vec<KxCommandLineArgument>>,
) -> Self
pub fn set_command_line_arguments( self, input: Option<Vec<KxCommandLineArgument>>, ) -> Self
Defines the key-value pairs to make them available inside the cluster.
Sourcepub fn get_command_line_arguments(&self) -> &Option<Vec<KxCommandLineArgument>>
pub fn get_command_line_arguments(&self) -> &Option<Vec<KxCommandLineArgument>>
Defines the key-value pairs to make them available inside the cluster.
Sourcepub fn code(self, input: CodeConfiguration) -> Self
pub fn code(self, input: CodeConfiguration) -> Self
The details of the custom code that you want to use inside a cluster when analyzing a data. It consists of the S3 source bucket, location, S3 object version, and the relative path from where the custom code is loaded into the cluster.
Sourcepub fn set_code(self, input: Option<CodeConfiguration>) -> Self
pub fn set_code(self, input: Option<CodeConfiguration>) -> Self
The details of the custom code that you want to use inside a cluster when analyzing a data. It consists of the S3 source bucket, location, S3 object version, and the relative path from where the custom code is loaded into the cluster.
Sourcepub fn get_code(&self) -> &Option<CodeConfiguration>
pub fn get_code(&self) -> &Option<CodeConfiguration>
The details of the custom code that you want to use inside a cluster when analyzing a data. It consists of the S3 source bucket, location, S3 object version, and the relative path from where the custom code is loaded into the cluster.
Sourcepub fn execution_role(self, input: impl Into<String>) -> Self
pub fn execution_role(self, input: impl Into<String>) -> Self
An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed when a cluster attempts to access another cluster.
Sourcepub fn set_execution_role(self, input: Option<String>) -> Self
pub fn set_execution_role(self, input: Option<String>) -> Self
An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed when a cluster attempts to access another cluster.
Sourcepub fn get_execution_role(&self) -> &Option<String>
pub fn get_execution_role(&self) -> &Option<String>
An IAM role that defines a set of permissions associated with a cluster. These permissions are assumed when a cluster attempts to access another cluster.
Sourcepub fn last_modified_timestamp(self, input: DateTime) -> Self
pub fn last_modified_timestamp(self, input: DateTime) -> Self
The last time that the cluster was modified. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
Sourcepub fn set_last_modified_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_last_modified_timestamp(self, input: Option<DateTime>) -> Self
The last time that the cluster was modified. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
Sourcepub fn get_last_modified_timestamp(&self) -> &Option<DateTime>
pub fn get_last_modified_timestamp(&self) -> &Option<DateTime>
The last time that the cluster was modified. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
Sourcepub fn savedown_storage_configuration(
self,
input: KxSavedownStorageConfiguration,
) -> Self
pub fn savedown_storage_configuration( self, input: KxSavedownStorageConfiguration, ) -> Self
The size and type of the temporary storage that is used to hold data during the savedown process. This parameter is required when you choose clusterType
as RDB. All the data written to this storage space is lost when the cluster node is restarted.
Sourcepub fn set_savedown_storage_configuration(
self,
input: Option<KxSavedownStorageConfiguration>,
) -> Self
pub fn set_savedown_storage_configuration( self, input: Option<KxSavedownStorageConfiguration>, ) -> Self
The size and type of the temporary storage that is used to hold data during the savedown process. This parameter is required when you choose clusterType
as RDB. All the data written to this storage space is lost when the cluster node is restarted.
Sourcepub fn get_savedown_storage_configuration(
&self,
) -> &Option<KxSavedownStorageConfiguration>
pub fn get_savedown_storage_configuration( &self, ) -> &Option<KxSavedownStorageConfiguration>
The size and type of the temporary storage that is used to hold data during the savedown process. This parameter is required when you choose clusterType
as RDB. All the data written to this storage space is lost when the cluster node is restarted.
Sourcepub fn az_mode(self, input: KxAzMode) -> Self
pub fn az_mode(self, input: KxAzMode) -> Self
The number of availability zones you want to assign per cluster. This can be one of the following
-
SINGLE
– Assigns one availability zone per cluster. -
MULTI
– Assigns all the availability zones per cluster.
Sourcepub fn set_az_mode(self, input: Option<KxAzMode>) -> Self
pub fn set_az_mode(self, input: Option<KxAzMode>) -> Self
The number of availability zones you want to assign per cluster. This can be one of the following
-
SINGLE
– Assigns one availability zone per cluster. -
MULTI
– Assigns all the availability zones per cluster.
Sourcepub fn get_az_mode(&self) -> &Option<KxAzMode>
pub fn get_az_mode(&self) -> &Option<KxAzMode>
The number of availability zones you want to assign per cluster. This can be one of the following
-
SINGLE
– Assigns one availability zone per cluster. -
MULTI
– Assigns all the availability zones per cluster.
Sourcepub fn availability_zone_id(self, input: impl Into<String>) -> Self
pub fn availability_zone_id(self, input: impl Into<String>) -> Self
The availability zone identifiers for the requested regions.
Sourcepub fn set_availability_zone_id(self, input: Option<String>) -> Self
pub fn set_availability_zone_id(self, input: Option<String>) -> Self
The availability zone identifiers for the requested regions.
Sourcepub fn get_availability_zone_id(&self) -> &Option<String>
pub fn get_availability_zone_id(&self) -> &Option<String>
The availability zone identifiers for the requested regions.
Sourcepub fn created_timestamp(self, input: DateTime) -> Self
pub fn created_timestamp(self, input: DateTime) -> Self
The timestamp at which the cluster was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
Sourcepub fn set_created_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_created_timestamp(self, input: Option<DateTime>) -> Self
The timestamp at which the cluster was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
Sourcepub fn get_created_timestamp(&self) -> &Option<DateTime>
pub fn get_created_timestamp(&self) -> &Option<DateTime>
The timestamp at which the cluster was created in FinSpace. The value is determined as epoch time in milliseconds. For example, the value for Monday, November 1, 2021 12:00:00 PM UTC is specified as 1635768000000.
Sourcepub fn scaling_group_configuration(
self,
input: KxScalingGroupConfiguration,
) -> Self
pub fn scaling_group_configuration( self, input: KxScalingGroupConfiguration, ) -> Self
The structure that stores the configuration details of a scaling group.
Sourcepub fn set_scaling_group_configuration(
self,
input: Option<KxScalingGroupConfiguration>,
) -> Self
pub fn set_scaling_group_configuration( self, input: Option<KxScalingGroupConfiguration>, ) -> Self
The structure that stores the configuration details of a scaling group.
Sourcepub fn get_scaling_group_configuration(
&self,
) -> &Option<KxScalingGroupConfiguration>
pub fn get_scaling_group_configuration( &self, ) -> &Option<KxScalingGroupConfiguration>
The structure that stores the configuration details of a scaling group.
Sourcepub fn build(self) -> CreateKxClusterOutput
pub fn build(self) -> CreateKxClusterOutput
Consumes the builder and constructs a CreateKxClusterOutput
.
Trait Implementations§
Source§impl Clone for CreateKxClusterOutputBuilder
impl Clone for CreateKxClusterOutputBuilder
Source§fn clone(&self) -> CreateKxClusterOutputBuilder
fn clone(&self) -> CreateKxClusterOutputBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for CreateKxClusterOutputBuilder
impl Debug for CreateKxClusterOutputBuilder
Source§impl Default for CreateKxClusterOutputBuilder
impl Default for CreateKxClusterOutputBuilder
Source§fn default() -> CreateKxClusterOutputBuilder
fn default() -> CreateKxClusterOutputBuilder
Source§impl PartialEq for CreateKxClusterOutputBuilder
impl PartialEq for CreateKxClusterOutputBuilder
Source§fn eq(&self, other: &CreateKxClusterOutputBuilder) -> bool
fn eq(&self, other: &CreateKxClusterOutputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateKxClusterOutputBuilder
Auto Trait Implementations§
impl Freeze for CreateKxClusterOutputBuilder
impl RefUnwindSafe for CreateKxClusterOutputBuilder
impl Send for CreateKxClusterOutputBuilder
impl Sync for CreateKxClusterOutputBuilder
impl Unpin for CreateKxClusterOutputBuilder
impl UnwindSafe for CreateKxClusterOutputBuilder
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);