Struct CodeGenConfigurationNodeBuilder

Source
#[non_exhaustive]
pub struct CodeGenConfigurationNodeBuilder { /* private fields */ }
Expand description

A builder for CodeGenConfigurationNode.

Implementations§

Source§

impl CodeGenConfigurationNodeBuilder

Source

pub fn athena_connector_source(self, input: AthenaConnectorSource) -> Self

Specifies a connector to an Amazon Athena data source.

Source

pub fn set_athena_connector_source( self, input: Option<AthenaConnectorSource>, ) -> Self

Specifies a connector to an Amazon Athena data source.

Source

pub fn get_athena_connector_source(&self) -> &Option<AthenaConnectorSource>

Specifies a connector to an Amazon Athena data source.

Source

pub fn jdbc_connector_source(self, input: JdbcConnectorSource) -> Self

Specifies a connector to a JDBC data source.

Source

pub fn set_jdbc_connector_source( self, input: Option<JdbcConnectorSource>, ) -> Self

Specifies a connector to a JDBC data source.

Source

pub fn get_jdbc_connector_source(&self) -> &Option<JdbcConnectorSource>

Specifies a connector to a JDBC data source.

Source

pub fn spark_connector_source(self, input: SparkConnectorSource) -> Self

Specifies a connector to an Apache Spark data source.

Source

pub fn set_spark_connector_source( self, input: Option<SparkConnectorSource>, ) -> Self

Specifies a connector to an Apache Spark data source.

Source

pub fn get_spark_connector_source(&self) -> &Option<SparkConnectorSource>

Specifies a connector to an Apache Spark data source.

Source

pub fn catalog_source(self, input: CatalogSource) -> Self

Specifies a data store in the Glue Data Catalog.

Source

pub fn set_catalog_source(self, input: Option<CatalogSource>) -> Self

Specifies a data store in the Glue Data Catalog.

Source

pub fn get_catalog_source(&self) -> &Option<CatalogSource>

Specifies a data store in the Glue Data Catalog.

Source

pub fn redshift_source(self, input: RedshiftSource) -> Self

Specifies an Amazon Redshift data store.

Source

pub fn set_redshift_source(self, input: Option<RedshiftSource>) -> Self

Specifies an Amazon Redshift data store.

Source

pub fn get_redshift_source(&self) -> &Option<RedshiftSource>

Specifies an Amazon Redshift data store.

Source

pub fn s3_catalog_source(self, input: S3CatalogSource) -> Self

Specifies an Amazon S3 data store in the Glue Data Catalog.

Source

pub fn set_s3_catalog_source(self, input: Option<S3CatalogSource>) -> Self

Specifies an Amazon S3 data store in the Glue Data Catalog.

Source

pub fn get_s3_catalog_source(&self) -> &Option<S3CatalogSource>

Specifies an Amazon S3 data store in the Glue Data Catalog.

Source

pub fn s3_csv_source(self, input: S3CsvSource) -> Self

Specifies a command-separated value (CSV) data store stored in Amazon S3.

Source

pub fn set_s3_csv_source(self, input: Option<S3CsvSource>) -> Self

Specifies a command-separated value (CSV) data store stored in Amazon S3.

Source

pub fn get_s3_csv_source(&self) -> &Option<S3CsvSource>

Specifies a command-separated value (CSV) data store stored in Amazon S3.

Source

pub fn s3_excel_source(self, input: S3ExcelSource) -> Self

Defines configuration parameters for reading Excel files from Amazon S3.

Source

pub fn set_s3_excel_source(self, input: Option<S3ExcelSource>) -> Self

Defines configuration parameters for reading Excel files from Amazon S3.

Source

pub fn get_s3_excel_source(&self) -> &Option<S3ExcelSource>

Defines configuration parameters for reading Excel files from Amazon S3.

Source

pub fn s3_json_source(self, input: S3JsonSource) -> Self

Specifies a JSON data store stored in Amazon S3.

Source

pub fn set_s3_json_source(self, input: Option<S3JsonSource>) -> Self

Specifies a JSON data store stored in Amazon S3.

Source

pub fn get_s3_json_source(&self) -> &Option<S3JsonSource>

Specifies a JSON data store stored in Amazon S3.

Source

pub fn s3_parquet_source(self, input: S3ParquetSource) -> Self

Specifies an Apache Parquet data store stored in Amazon S3.

Source

pub fn set_s3_parquet_source(self, input: Option<S3ParquetSource>) -> Self

Specifies an Apache Parquet data store stored in Amazon S3.

Source

pub fn get_s3_parquet_source(&self) -> &Option<S3ParquetSource>

Specifies an Apache Parquet data store stored in Amazon S3.

Source

pub fn relational_catalog_source(self, input: RelationalCatalogSource) -> Self

Specifies a relational catalog data store in the Glue Data Catalog.

Source

pub fn set_relational_catalog_source( self, input: Option<RelationalCatalogSource>, ) -> Self

Specifies a relational catalog data store in the Glue Data Catalog.

Source

pub fn get_relational_catalog_source(&self) -> &Option<RelationalCatalogSource>

Specifies a relational catalog data store in the Glue Data Catalog.

Source

pub fn dynamo_db_catalog_source(self, input: DynamoDbCatalogSource) -> Self

Specifies a DynamoDBC Catalog data store in the Glue Data Catalog.

Source

pub fn set_dynamo_db_catalog_source( self, input: Option<DynamoDbCatalogSource>, ) -> Self

Specifies a DynamoDBC Catalog data store in the Glue Data Catalog.

Source

pub fn get_dynamo_db_catalog_source(&self) -> &Option<DynamoDbCatalogSource>

Specifies a DynamoDBC Catalog data store in the Glue Data Catalog.

Source

pub fn jdbc_connector_target(self, input: JdbcConnectorTarget) -> Self

Specifies a data target that writes to Amazon S3 in Apache Parquet columnar storage.

Source

pub fn set_jdbc_connector_target( self, input: Option<JdbcConnectorTarget>, ) -> Self

Specifies a data target that writes to Amazon S3 in Apache Parquet columnar storage.

Source

pub fn get_jdbc_connector_target(&self) -> &Option<JdbcConnectorTarget>

Specifies a data target that writes to Amazon S3 in Apache Parquet columnar storage.

Source

pub fn spark_connector_target(self, input: SparkConnectorTarget) -> Self

Specifies a target that uses an Apache Spark connector.

Source

pub fn set_spark_connector_target( self, input: Option<SparkConnectorTarget>, ) -> Self

Specifies a target that uses an Apache Spark connector.

Source

pub fn get_spark_connector_target(&self) -> &Option<SparkConnectorTarget>

Specifies a target that uses an Apache Spark connector.

Source

pub fn catalog_target(self, input: BasicCatalogTarget) -> Self

Specifies a target that uses a Glue Data Catalog table.

Source

pub fn set_catalog_target(self, input: Option<BasicCatalogTarget>) -> Self

Specifies a target that uses a Glue Data Catalog table.

Source

pub fn get_catalog_target(&self) -> &Option<BasicCatalogTarget>

Specifies a target that uses a Glue Data Catalog table.

Source

pub fn redshift_target(self, input: RedshiftTarget) -> Self

Specifies a target that uses Amazon Redshift.

Source

pub fn set_redshift_target(self, input: Option<RedshiftTarget>) -> Self

Specifies a target that uses Amazon Redshift.

Source

pub fn get_redshift_target(&self) -> &Option<RedshiftTarget>

Specifies a target that uses Amazon Redshift.

Source

pub fn s3_catalog_target(self, input: S3CatalogTarget) -> Self

Specifies a data target that writes to Amazon S3 using the Glue Data Catalog.

Source

pub fn set_s3_catalog_target(self, input: Option<S3CatalogTarget>) -> Self

Specifies a data target that writes to Amazon S3 using the Glue Data Catalog.

Source

pub fn get_s3_catalog_target(&self) -> &Option<S3CatalogTarget>

Specifies a data target that writes to Amazon S3 using the Glue Data Catalog.

Source

pub fn s3_glue_parquet_target(self, input: S3GlueParquetTarget) -> Self

Specifies a data target that writes to Amazon S3 in Apache Parquet columnar storage.

Source

pub fn set_s3_glue_parquet_target( self, input: Option<S3GlueParquetTarget>, ) -> Self

Specifies a data target that writes to Amazon S3 in Apache Parquet columnar storage.

Source

pub fn get_s3_glue_parquet_target(&self) -> &Option<S3GlueParquetTarget>

Specifies a data target that writes to Amazon S3 in Apache Parquet columnar storage.

Source

pub fn s3_hyper_direct_target(self, input: S3HyperDirectTarget) -> Self

Defines configuration parameters for writing data to Amazon S3 using HyperDirect optimization.

Source

pub fn set_s3_hyper_direct_target( self, input: Option<S3HyperDirectTarget>, ) -> Self

Defines configuration parameters for writing data to Amazon S3 using HyperDirect optimization.

Source

pub fn get_s3_hyper_direct_target(&self) -> &Option<S3HyperDirectTarget>

Defines configuration parameters for writing data to Amazon S3 using HyperDirect optimization.

Source

pub fn s3_direct_target(self, input: S3DirectTarget) -> Self

Specifies a data target that writes to Amazon S3.

Source

pub fn set_s3_direct_target(self, input: Option<S3DirectTarget>) -> Self

Specifies a data target that writes to Amazon S3.

Source

pub fn get_s3_direct_target(&self) -> &Option<S3DirectTarget>

Specifies a data target that writes to Amazon S3.

Source

pub fn s3_iceberg_direct_target(self, input: S3IcebergDirectTarget) -> Self

Defines configuration parameters for writing data to Amazon S3 as an Apache Iceberg table.

Source

pub fn set_s3_iceberg_direct_target( self, input: Option<S3IcebergDirectTarget>, ) -> Self

Defines configuration parameters for writing data to Amazon S3 as an Apache Iceberg table.

Source

pub fn get_s3_iceberg_direct_target(&self) -> &Option<S3IcebergDirectTarget>

Defines configuration parameters for writing data to Amazon S3 as an Apache Iceberg table.

Source

pub fn apply_mapping(self, input: ApplyMapping) -> Self

Specifies a transform that maps data property keys in the data source to data property keys in the data target. You can rename keys, modify the data types for keys, and choose which keys to drop from the dataset.

Source

pub fn set_apply_mapping(self, input: Option<ApplyMapping>) -> Self

Specifies a transform that maps data property keys in the data source to data property keys in the data target. You can rename keys, modify the data types for keys, and choose which keys to drop from the dataset.

Source

pub fn get_apply_mapping(&self) -> &Option<ApplyMapping>

Specifies a transform that maps data property keys in the data source to data property keys in the data target. You can rename keys, modify the data types for keys, and choose which keys to drop from the dataset.

Source

pub fn select_fields(self, input: SelectFields) -> Self

Specifies a transform that chooses the data property keys that you want to keep.

Source

pub fn set_select_fields(self, input: Option<SelectFields>) -> Self

Specifies a transform that chooses the data property keys that you want to keep.

Source

pub fn get_select_fields(&self) -> &Option<SelectFields>

Specifies a transform that chooses the data property keys that you want to keep.

Source

pub fn drop_fields(self, input: DropFields) -> Self

Specifies a transform that chooses the data property keys that you want to drop.

Source

pub fn set_drop_fields(self, input: Option<DropFields>) -> Self

Specifies a transform that chooses the data property keys that you want to drop.

Source

pub fn get_drop_fields(&self) -> &Option<DropFields>

Specifies a transform that chooses the data property keys that you want to drop.

Source

pub fn rename_field(self, input: RenameField) -> Self

Specifies a transform that renames a single data property key.

Source

pub fn set_rename_field(self, input: Option<RenameField>) -> Self

Specifies a transform that renames a single data property key.

Source

pub fn get_rename_field(&self) -> &Option<RenameField>

Specifies a transform that renames a single data property key.

Source

pub fn spigot(self, input: Spigot) -> Self

Specifies a transform that writes samples of the data to an Amazon S3 bucket.

Source

pub fn set_spigot(self, input: Option<Spigot>) -> Self

Specifies a transform that writes samples of the data to an Amazon S3 bucket.

Source

pub fn get_spigot(&self) -> &Option<Spigot>

Specifies a transform that writes samples of the data to an Amazon S3 bucket.

Source

pub fn join(self, input: Join) -> Self

Specifies a transform that joins two datasets into one dataset using a comparison phrase on the specified data property keys. You can use inner, outer, left, right, left semi, and left anti joins.

Source

pub fn set_join(self, input: Option<Join>) -> Self

Specifies a transform that joins two datasets into one dataset using a comparison phrase on the specified data property keys. You can use inner, outer, left, right, left semi, and left anti joins.

Source

pub fn get_join(&self) -> &Option<Join>

Specifies a transform that joins two datasets into one dataset using a comparison phrase on the specified data property keys. You can use inner, outer, left, right, left semi, and left anti joins.

Source

pub fn split_fields(self, input: SplitFields) -> Self

Specifies a transform that splits data property keys into two DynamicFrames. The output is a collection of DynamicFrames: one with selected data property keys, and one with the remaining data property keys.

Source

pub fn set_split_fields(self, input: Option<SplitFields>) -> Self

Specifies a transform that splits data property keys into two DynamicFrames. The output is a collection of DynamicFrames: one with selected data property keys, and one with the remaining data property keys.

Source

pub fn get_split_fields(&self) -> &Option<SplitFields>

Specifies a transform that splits data property keys into two DynamicFrames. The output is a collection of DynamicFrames: one with selected data property keys, and one with the remaining data property keys.

Source

pub fn select_from_collection(self, input: SelectFromCollection) -> Self

Specifies a transform that chooses one DynamicFrame from a collection of DynamicFrames. The output is the selected DynamicFrame

Source

pub fn set_select_from_collection( self, input: Option<SelectFromCollection>, ) -> Self

Specifies a transform that chooses one DynamicFrame from a collection of DynamicFrames. The output is the selected DynamicFrame

Source

pub fn get_select_from_collection(&self) -> &Option<SelectFromCollection>

Specifies a transform that chooses one DynamicFrame from a collection of DynamicFrames. The output is the selected DynamicFrame

Source

pub fn fill_missing_values(self, input: FillMissingValues) -> Self

Specifies a transform that locates records in the dataset that have missing values and adds a new field with a value determined by imputation. The input data set is used to train the machine learning model that determines what the missing value should be.

Source

pub fn set_fill_missing_values(self, input: Option<FillMissingValues>) -> Self

Specifies a transform that locates records in the dataset that have missing values and adds a new field with a value determined by imputation. The input data set is used to train the machine learning model that determines what the missing value should be.

Source

pub fn get_fill_missing_values(&self) -> &Option<FillMissingValues>

Specifies a transform that locates records in the dataset that have missing values and adds a new field with a value determined by imputation. The input data set is used to train the machine learning model that determines what the missing value should be.

Source

pub fn filter(self, input: Filter) -> Self

Specifies a transform that splits a dataset into two, based on a filter condition.

Source

pub fn set_filter(self, input: Option<Filter>) -> Self

Specifies a transform that splits a dataset into two, based on a filter condition.

Source

pub fn get_filter(&self) -> &Option<Filter>

Specifies a transform that splits a dataset into two, based on a filter condition.

Source

pub fn custom_code(self, input: CustomCode) -> Self

Specifies a transform that uses custom code you provide to perform the data transformation. The output is a collection of DynamicFrames.

Source

pub fn set_custom_code(self, input: Option<CustomCode>) -> Self

Specifies a transform that uses custom code you provide to perform the data transformation. The output is a collection of DynamicFrames.

Source

pub fn get_custom_code(&self) -> &Option<CustomCode>

Specifies a transform that uses custom code you provide to perform the data transformation. The output is a collection of DynamicFrames.

Source

pub fn spark_sql(self, input: SparkSql) -> Self

Specifies a transform where you enter a SQL query using Spark SQL syntax to transform the data. The output is a single DynamicFrame.

Source

pub fn set_spark_sql(self, input: Option<SparkSql>) -> Self

Specifies a transform where you enter a SQL query using Spark SQL syntax to transform the data. The output is a single DynamicFrame.

Source

pub fn get_spark_sql(&self) -> &Option<SparkSql>

Specifies a transform where you enter a SQL query using Spark SQL syntax to transform the data. The output is a single DynamicFrame.

Source

pub fn direct_kinesis_source(self, input: DirectKinesisSource) -> Self

Specifies a direct Amazon Kinesis data source.

Source

pub fn set_direct_kinesis_source( self, input: Option<DirectKinesisSource>, ) -> Self

Specifies a direct Amazon Kinesis data source.

Source

pub fn get_direct_kinesis_source(&self) -> &Option<DirectKinesisSource>

Specifies a direct Amazon Kinesis data source.

Source

pub fn direct_kafka_source(self, input: DirectKafkaSource) -> Self

Specifies an Apache Kafka data store.

Source

pub fn set_direct_kafka_source(self, input: Option<DirectKafkaSource>) -> Self

Specifies an Apache Kafka data store.

Source

pub fn get_direct_kafka_source(&self) -> &Option<DirectKafkaSource>

Specifies an Apache Kafka data store.

Source

pub fn catalog_kinesis_source(self, input: CatalogKinesisSource) -> Self

Specifies a Kinesis data source in the Glue Data Catalog.

Source

pub fn set_catalog_kinesis_source( self, input: Option<CatalogKinesisSource>, ) -> Self

Specifies a Kinesis data source in the Glue Data Catalog.

Source

pub fn get_catalog_kinesis_source(&self) -> &Option<CatalogKinesisSource>

Specifies a Kinesis data source in the Glue Data Catalog.

Source

pub fn catalog_kafka_source(self, input: CatalogKafkaSource) -> Self

Specifies an Apache Kafka data store in the Data Catalog.

Source

pub fn set_catalog_kafka_source(self, input: Option<CatalogKafkaSource>) -> Self

Specifies an Apache Kafka data store in the Data Catalog.

Source

pub fn get_catalog_kafka_source(&self) -> &Option<CatalogKafkaSource>

Specifies an Apache Kafka data store in the Data Catalog.

Source

pub fn drop_null_fields(self, input: DropNullFields) -> Self

Specifies a transform that removes columns from the dataset if all values in the column are 'null'. By default, Glue Studio will recognize null objects, but some values such as empty strings, strings that are "null", -1 integers or other placeholders such as zeros, are not automatically recognized as nulls.

Source

pub fn set_drop_null_fields(self, input: Option<DropNullFields>) -> Self

Specifies a transform that removes columns from the dataset if all values in the column are 'null'. By default, Glue Studio will recognize null objects, but some values such as empty strings, strings that are "null", -1 integers or other placeholders such as zeros, are not automatically recognized as nulls.

Source

pub fn get_drop_null_fields(&self) -> &Option<DropNullFields>

Specifies a transform that removes columns from the dataset if all values in the column are 'null'. By default, Glue Studio will recognize null objects, but some values such as empty strings, strings that are "null", -1 integers or other placeholders such as zeros, are not automatically recognized as nulls.

Source

pub fn merge(self, input: Merge) -> Self

Specifies a transform that merges a DynamicFrame with a staging DynamicFrame based on the specified primary keys to identify records. Duplicate records (records with the same primary keys) are not de-duplicated.

Source

pub fn set_merge(self, input: Option<Merge>) -> Self

Specifies a transform that merges a DynamicFrame with a staging DynamicFrame based on the specified primary keys to identify records. Duplicate records (records with the same primary keys) are not de-duplicated.

Source

pub fn get_merge(&self) -> &Option<Merge>

Specifies a transform that merges a DynamicFrame with a staging DynamicFrame based on the specified primary keys to identify records. Duplicate records (records with the same primary keys) are not de-duplicated.

Source

pub fn union(self, input: Union) -> Self

Specifies a transform that combines the rows from two or more datasets into a single result.

Source

pub fn set_union(self, input: Option<Union>) -> Self

Specifies a transform that combines the rows from two or more datasets into a single result.

Source

pub fn get_union(&self) -> &Option<Union>

Specifies a transform that combines the rows from two or more datasets into a single result.

Source

pub fn pii_detection(self, input: PiiDetection) -> Self

Specifies a transform that identifies, removes or masks PII data.

Source

pub fn set_pii_detection(self, input: Option<PiiDetection>) -> Self

Specifies a transform that identifies, removes or masks PII data.

Source

pub fn get_pii_detection(&self) -> &Option<PiiDetection>

Specifies a transform that identifies, removes or masks PII data.

Source

pub fn aggregate(self, input: Aggregate) -> Self

Specifies a transform that groups rows by chosen fields and computes the aggregated value by specified function.

Source

pub fn set_aggregate(self, input: Option<Aggregate>) -> Self

Specifies a transform that groups rows by chosen fields and computes the aggregated value by specified function.

Source

pub fn get_aggregate(&self) -> &Option<Aggregate>

Specifies a transform that groups rows by chosen fields and computes the aggregated value by specified function.

Source

pub fn drop_duplicates(self, input: DropDuplicates) -> Self

Specifies a transform that removes rows of repeating data from a data set.

Source

pub fn set_drop_duplicates(self, input: Option<DropDuplicates>) -> Self

Specifies a transform that removes rows of repeating data from a data set.

Source

pub fn get_drop_duplicates(&self) -> &Option<DropDuplicates>

Specifies a transform that removes rows of repeating data from a data set.

Source

pub fn governed_catalog_target(self, input: GovernedCatalogTarget) -> Self

Specifies a data target that writes to a goverened catalog.

Source

pub fn set_governed_catalog_target( self, input: Option<GovernedCatalogTarget>, ) -> Self

Specifies a data target that writes to a goverened catalog.

Source

pub fn get_governed_catalog_target(&self) -> &Option<GovernedCatalogTarget>

Specifies a data target that writes to a goverened catalog.

Source

pub fn governed_catalog_source(self, input: GovernedCatalogSource) -> Self

Specifies a data source in a goverened Data Catalog.

Source

pub fn set_governed_catalog_source( self, input: Option<GovernedCatalogSource>, ) -> Self

Specifies a data source in a goverened Data Catalog.

Source

pub fn get_governed_catalog_source(&self) -> &Option<GovernedCatalogSource>

Specifies a data source in a goverened Data Catalog.

Source

pub fn microsoft_sql_server_catalog_source( self, input: MicrosoftSqlServerCatalogSource, ) -> Self

Specifies a Microsoft SQL server data source in the Glue Data Catalog.

Source

pub fn set_microsoft_sql_server_catalog_source( self, input: Option<MicrosoftSqlServerCatalogSource>, ) -> Self

Specifies a Microsoft SQL server data source in the Glue Data Catalog.

Source

pub fn get_microsoft_sql_server_catalog_source( &self, ) -> &Option<MicrosoftSqlServerCatalogSource>

Specifies a Microsoft SQL server data source in the Glue Data Catalog.

Source

pub fn my_sql_catalog_source(self, input: MySqlCatalogSource) -> Self

Specifies a MySQL data source in the Glue Data Catalog.

Source

pub fn set_my_sql_catalog_source( self, input: Option<MySqlCatalogSource>, ) -> Self

Specifies a MySQL data source in the Glue Data Catalog.

Source

pub fn get_my_sql_catalog_source(&self) -> &Option<MySqlCatalogSource>

Specifies a MySQL data source in the Glue Data Catalog.

Source

pub fn oracle_sql_catalog_source(self, input: OracleSqlCatalogSource) -> Self

Specifies an Oracle data source in the Glue Data Catalog.

Source

pub fn set_oracle_sql_catalog_source( self, input: Option<OracleSqlCatalogSource>, ) -> Self

Specifies an Oracle data source in the Glue Data Catalog.

Source

pub fn get_oracle_sql_catalog_source(&self) -> &Option<OracleSqlCatalogSource>

Specifies an Oracle data source in the Glue Data Catalog.

Source

pub fn postgre_sql_catalog_source(self, input: PostgreSqlCatalogSource) -> Self

Specifies a PostgresSQL data source in the Glue Data Catalog.

Source

pub fn set_postgre_sql_catalog_source( self, input: Option<PostgreSqlCatalogSource>, ) -> Self

Specifies a PostgresSQL data source in the Glue Data Catalog.

Source

pub fn get_postgre_sql_catalog_source(&self) -> &Option<PostgreSqlCatalogSource>

Specifies a PostgresSQL data source in the Glue Data Catalog.

Source

pub fn microsoft_sql_server_catalog_target( self, input: MicrosoftSqlServerCatalogTarget, ) -> Self

Specifies a target that uses Microsoft SQL.

Source

pub fn set_microsoft_sql_server_catalog_target( self, input: Option<MicrosoftSqlServerCatalogTarget>, ) -> Self

Specifies a target that uses Microsoft SQL.

Source

pub fn get_microsoft_sql_server_catalog_target( &self, ) -> &Option<MicrosoftSqlServerCatalogTarget>

Specifies a target that uses Microsoft SQL.

Source

pub fn my_sql_catalog_target(self, input: MySqlCatalogTarget) -> Self

Specifies a target that uses MySQL.

Source

pub fn set_my_sql_catalog_target( self, input: Option<MySqlCatalogTarget>, ) -> Self

Specifies a target that uses MySQL.

Source

pub fn get_my_sql_catalog_target(&self) -> &Option<MySqlCatalogTarget>

Specifies a target that uses MySQL.

Source

pub fn oracle_sql_catalog_target(self, input: OracleSqlCatalogTarget) -> Self

Specifies a target that uses Oracle SQL.

Source

pub fn set_oracle_sql_catalog_target( self, input: Option<OracleSqlCatalogTarget>, ) -> Self

Specifies a target that uses Oracle SQL.

Source

pub fn get_oracle_sql_catalog_target(&self) -> &Option<OracleSqlCatalogTarget>

Specifies a target that uses Oracle SQL.

Source

pub fn postgre_sql_catalog_target(self, input: PostgreSqlCatalogTarget) -> Self

Specifies a target that uses Postgres SQL.

Source

pub fn set_postgre_sql_catalog_target( self, input: Option<PostgreSqlCatalogTarget>, ) -> Self

Specifies a target that uses Postgres SQL.

Source

pub fn get_postgre_sql_catalog_target(&self) -> &Option<PostgreSqlCatalogTarget>

Specifies a target that uses Postgres SQL.

Source

pub fn dynamic_transform(self, input: DynamicTransform) -> Self

Specifies a custom visual transform created by a user.

Source

pub fn set_dynamic_transform(self, input: Option<DynamicTransform>) -> Self

Specifies a custom visual transform created by a user.

Source

pub fn get_dynamic_transform(&self) -> &Option<DynamicTransform>

Specifies a custom visual transform created by a user.

Source

pub fn evaluate_data_quality(self, input: EvaluateDataQuality) -> Self

Specifies your data quality evaluation criteria.

Source

pub fn set_evaluate_data_quality( self, input: Option<EvaluateDataQuality>, ) -> Self

Specifies your data quality evaluation criteria.

Source

pub fn get_evaluate_data_quality(&self) -> &Option<EvaluateDataQuality>

Specifies your data quality evaluation criteria.

Source

pub fn s3_catalog_hudi_source(self, input: S3CatalogHudiSource) -> Self

Specifies a Hudi data source that is registered in the Glue Data Catalog. The data source must be stored in Amazon S3.

Source

pub fn set_s3_catalog_hudi_source( self, input: Option<S3CatalogHudiSource>, ) -> Self

Specifies a Hudi data source that is registered in the Glue Data Catalog. The data source must be stored in Amazon S3.

Source

pub fn get_s3_catalog_hudi_source(&self) -> &Option<S3CatalogHudiSource>

Specifies a Hudi data source that is registered in the Glue Data Catalog. The data source must be stored in Amazon S3.

Source

pub fn catalog_hudi_source(self, input: CatalogHudiSource) -> Self

Specifies a Hudi data source that is registered in the Glue Data Catalog.

Source

pub fn set_catalog_hudi_source(self, input: Option<CatalogHudiSource>) -> Self

Specifies a Hudi data source that is registered in the Glue Data Catalog.

Source

pub fn get_catalog_hudi_source(&self) -> &Option<CatalogHudiSource>

Specifies a Hudi data source that is registered in the Glue Data Catalog.

Source

pub fn s3_hudi_source(self, input: S3HudiSource) -> Self

Specifies a Hudi data source stored in Amazon S3.

Source

pub fn set_s3_hudi_source(self, input: Option<S3HudiSource>) -> Self

Specifies a Hudi data source stored in Amazon S3.

Source

pub fn get_s3_hudi_source(&self) -> &Option<S3HudiSource>

Specifies a Hudi data source stored in Amazon S3.

Source

pub fn s3_hudi_catalog_target(self, input: S3HudiCatalogTarget) -> Self

Specifies a target that writes to a Hudi data source in the Glue Data Catalog.

Source

pub fn set_s3_hudi_catalog_target( self, input: Option<S3HudiCatalogTarget>, ) -> Self

Specifies a target that writes to a Hudi data source in the Glue Data Catalog.

Source

pub fn get_s3_hudi_catalog_target(&self) -> &Option<S3HudiCatalogTarget>

Specifies a target that writes to a Hudi data source in the Glue Data Catalog.

Source

pub fn s3_hudi_direct_target(self, input: S3HudiDirectTarget) -> Self

Specifies a target that writes to a Hudi data source in Amazon S3.

Source

pub fn set_s3_hudi_direct_target( self, input: Option<S3HudiDirectTarget>, ) -> Self

Specifies a target that writes to a Hudi data source in Amazon S3.

Source

pub fn get_s3_hudi_direct_target(&self) -> &Option<S3HudiDirectTarget>

Specifies a target that writes to a Hudi data source in Amazon S3.

Source

pub fn direct_jdbc_source(self, input: DirectJdbcSource) -> Self

Specifies the direct JDBC source connection.

Source

pub fn set_direct_jdbc_source(self, input: Option<DirectJdbcSource>) -> Self

Specifies the direct JDBC source connection.

Source

pub fn get_direct_jdbc_source(&self) -> &Option<DirectJdbcSource>

Specifies the direct JDBC source connection.

Source

pub fn s3_catalog_delta_source(self, input: S3CatalogDeltaSource) -> Self

Specifies a Delta Lake data source that is registered in the Glue Data Catalog. The data source must be stored in Amazon S3.

Source

pub fn set_s3_catalog_delta_source( self, input: Option<S3CatalogDeltaSource>, ) -> Self

Specifies a Delta Lake data source that is registered in the Glue Data Catalog. The data source must be stored in Amazon S3.

Source

pub fn get_s3_catalog_delta_source(&self) -> &Option<S3CatalogDeltaSource>

Specifies a Delta Lake data source that is registered in the Glue Data Catalog. The data source must be stored in Amazon S3.

Source

pub fn catalog_delta_source(self, input: CatalogDeltaSource) -> Self

Specifies a Delta Lake data source that is registered in the Glue Data Catalog.

Source

pub fn set_catalog_delta_source(self, input: Option<CatalogDeltaSource>) -> Self

Specifies a Delta Lake data source that is registered in the Glue Data Catalog.

Source

pub fn get_catalog_delta_source(&self) -> &Option<CatalogDeltaSource>

Specifies a Delta Lake data source that is registered in the Glue Data Catalog.

Source

pub fn s3_delta_source(self, input: S3DeltaSource) -> Self

Specifies a Delta Lake data source stored in Amazon S3.

Source

pub fn set_s3_delta_source(self, input: Option<S3DeltaSource>) -> Self

Specifies a Delta Lake data source stored in Amazon S3.

Source

pub fn get_s3_delta_source(&self) -> &Option<S3DeltaSource>

Specifies a Delta Lake data source stored in Amazon S3.

Source

pub fn s3_delta_catalog_target(self, input: S3DeltaCatalogTarget) -> Self

Specifies a target that writes to a Delta Lake data source in the Glue Data Catalog.

Source

pub fn set_s3_delta_catalog_target( self, input: Option<S3DeltaCatalogTarget>, ) -> Self

Specifies a target that writes to a Delta Lake data source in the Glue Data Catalog.

Source

pub fn get_s3_delta_catalog_target(&self) -> &Option<S3DeltaCatalogTarget>

Specifies a target that writes to a Delta Lake data source in the Glue Data Catalog.

Source

pub fn s3_delta_direct_target(self, input: S3DeltaDirectTarget) -> Self

Specifies a target that writes to a Delta Lake data source in Amazon S3.

Source

pub fn set_s3_delta_direct_target( self, input: Option<S3DeltaDirectTarget>, ) -> Self

Specifies a target that writes to a Delta Lake data source in Amazon S3.

Source

pub fn get_s3_delta_direct_target(&self) -> &Option<S3DeltaDirectTarget>

Specifies a target that writes to a Delta Lake data source in Amazon S3.

Source

pub fn amazon_redshift_source(self, input: AmazonRedshiftSource) -> Self

Specifies a target that writes to a data source in Amazon Redshift.

Source

pub fn set_amazon_redshift_source( self, input: Option<AmazonRedshiftSource>, ) -> Self

Specifies a target that writes to a data source in Amazon Redshift.

Source

pub fn get_amazon_redshift_source(&self) -> &Option<AmazonRedshiftSource>

Specifies a target that writes to a data source in Amazon Redshift.

Source

pub fn amazon_redshift_target(self, input: AmazonRedshiftTarget) -> Self

Specifies a target that writes to a data target in Amazon Redshift.

Source

pub fn set_amazon_redshift_target( self, input: Option<AmazonRedshiftTarget>, ) -> Self

Specifies a target that writes to a data target in Amazon Redshift.

Source

pub fn get_amazon_redshift_target(&self) -> &Option<AmazonRedshiftTarget>

Specifies a target that writes to a data target in Amazon Redshift.

Source

pub fn evaluate_data_quality_multi_frame( self, input: EvaluateDataQualityMultiFrame, ) -> Self

Specifies your data quality evaluation criteria. Allows multiple input data and returns a collection of Dynamic Frames.

Source

pub fn set_evaluate_data_quality_multi_frame( self, input: Option<EvaluateDataQualityMultiFrame>, ) -> Self

Specifies your data quality evaluation criteria. Allows multiple input data and returns a collection of Dynamic Frames.

Source

pub fn get_evaluate_data_quality_multi_frame( &self, ) -> &Option<EvaluateDataQualityMultiFrame>

Specifies your data quality evaluation criteria. Allows multiple input data and returns a collection of Dynamic Frames.

Source

pub fn recipe(self, input: Recipe) -> Self

Specifies a Glue DataBrew recipe node.

Source

pub fn set_recipe(self, input: Option<Recipe>) -> Self

Specifies a Glue DataBrew recipe node.

Source

pub fn get_recipe(&self) -> &Option<Recipe>

Specifies a Glue DataBrew recipe node.

Source

pub fn snowflake_source(self, input: SnowflakeSource) -> Self

Specifies a Snowflake data source.

Source

pub fn set_snowflake_source(self, input: Option<SnowflakeSource>) -> Self

Specifies a Snowflake data source.

Source

pub fn get_snowflake_source(&self) -> &Option<SnowflakeSource>

Specifies a Snowflake data source.

Source

pub fn snowflake_target(self, input: SnowflakeTarget) -> Self

Specifies a target that writes to a Snowflake data source.

Source

pub fn set_snowflake_target(self, input: Option<SnowflakeTarget>) -> Self

Specifies a target that writes to a Snowflake data source.

Source

pub fn get_snowflake_target(&self) -> &Option<SnowflakeTarget>

Specifies a target that writes to a Snowflake data source.

Source

pub fn connector_data_source(self, input: ConnectorDataSource) -> Self

Specifies a source generated with standard connection options.

Source

pub fn set_connector_data_source( self, input: Option<ConnectorDataSource>, ) -> Self

Specifies a source generated with standard connection options.

Source

pub fn get_connector_data_source(&self) -> &Option<ConnectorDataSource>

Specifies a source generated with standard connection options.

Source

pub fn connector_data_target(self, input: ConnectorDataTarget) -> Self

Specifies a target generated with standard connection options.

Source

pub fn set_connector_data_target( self, input: Option<ConnectorDataTarget>, ) -> Self

Specifies a target generated with standard connection options.

Source

pub fn get_connector_data_target(&self) -> &Option<ConnectorDataTarget>

Specifies a target generated with standard connection options.

Source

pub fn build(self) -> CodeGenConfigurationNode

Consumes the builder and constructs a CodeGenConfigurationNode.

Trait Implementations§

Source§

impl Clone for CodeGenConfigurationNodeBuilder

Source§

fn clone(&self) -> CodeGenConfigurationNodeBuilder

Returns a duplicate of the value. Read more
1.0.0 · Source§

const fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for CodeGenConfigurationNodeBuilder

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for CodeGenConfigurationNodeBuilder

Source§

fn default() -> CodeGenConfigurationNodeBuilder

Returns the “default value” for a type. Read more
Source§

impl PartialEq for CodeGenConfigurationNodeBuilder

Source§

fn eq(&self, other: &CodeGenConfigurationNodeBuilder) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

const fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for CodeGenConfigurationNodeBuilder

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts 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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts 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 more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Paint for T
where T: ?Sized,

Source§

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 primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Primary].

§Example
println!("{}", value.primary());
Source§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Fixed].

§Example
println!("{}", value.fixed(color));
Source§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Rgb].

§Example
println!("{}", value.rgb(r, g, b));
Source§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Black].

§Example
println!("{}", value.black());
Source§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Red].

§Example
println!("{}", value.red());
Source§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Green].

§Example
println!("{}", value.green());
Source§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Yellow].

§Example
println!("{}", value.yellow());
Source§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Blue].

§Example
println!("{}", value.blue());
Source§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Magenta].

§Example
println!("{}", value.magenta());
Source§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Cyan].

§Example
println!("{}", value.cyan());
Source§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: White].

§Example
println!("{}", value.white());
Source§

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>

Returns self with the fg() set to [Color :: BrightRed].

§Example
println!("{}", value.bright_red());
Source§

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>

Returns self with the fg() set to [Color :: BrightYellow].

§Example
println!("{}", value.bright_yellow());
Source§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlue].

§Example
println!("{}", value.bright_blue());
Source§

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>

Returns self with the fg() set to [Color :: BrightCyan].

§Example
println!("{}", value.bright_cyan());
Source§

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>

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>

Returns self with the bg() set to [Color :: Primary].

§Example
println!("{}", value.on_primary());
Source§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Fixed].

§Example
println!("{}", value.on_fixed(color));
Source§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
Source§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Black].

§Example
println!("{}", value.on_black());
Source§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Red].

§Example
println!("{}", value.on_red());
Source§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Green].

§Example
println!("{}", value.on_green());
Source§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Yellow].

§Example
println!("{}", value.on_yellow());
Source§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Blue].

§Example
println!("{}", value.on_blue());
Source§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Magenta].

§Example
println!("{}", value.on_magenta());
Source§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Cyan].

§Example
println!("{}", value.on_cyan());
Source§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: White].

§Example
println!("{}", value.on_white());
Source§

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>

Returns self with the bg() set to [Color :: BrightRed].

§Example
println!("{}", value.on_bright_red());
Source§

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>

Returns self with the bg() set to [Color :: BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
Source§

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>

Returns self with the bg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
Source§

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>

Returns self with the bg() set to [Color :: BrightWhite].

§Example
println!("{}", value.on_bright_white());
Source§

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 bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Bold].

§Example
println!("{}", value.bold());
Source§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Dim].

§Example
println!("{}", value.dim());
Source§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Italic].

§Example
println!("{}", value.italic());
Source§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute :: Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute :: RapidBlink].

§Example
println!("{}", value.rapid_blink());
Source§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Invert].

§Example
println!("{}", value.invert());
Source§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Conceal].

§Example
println!("{}", value.conceal());
Source§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Strike].

§Example
println!("{}", value.strike());
Source§

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 mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Mask].

§Example
println!("{}", value.mask());
Source§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Wrap].

§Example
println!("{}", value.wrap());
Source§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Linger].

§Example
println!("{}", value.linger());
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.

Returns self with the quirk() set to [Quirk :: Clear].

§Example
println!("{}", value.clear());
Source§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Resetting].

§Example
println!("{}", value.resetting());
Source§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Bright].

§Example
println!("{}", value.bright());
Source§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: OnBright].

§Example
println!("{}", value.on_bright());
Source§

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);
Source§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new Painted with a default Style. Read more
Source§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,