pub struct CreateConnectionFluentBuilder { /* private fields */ }Expand description
Fluent builder constructing a request to CreateConnection.
Creates a connection to a data source, such as an AWS Glue Data Catalog, an Amazon Bedrock knowledge base, or a third-party data catalog through an AWS Glue connection. GetConnection returns the connection's status.
Implementations§
Source§impl CreateConnectionFluentBuilder
impl CreateConnectionFluentBuilder
Sourcepub fn as_input(&self) -> &CreateConnectionInputBuilder
pub fn as_input(&self) -> &CreateConnectionInputBuilder
Access the CreateConnection as a reference.
Sourcepub async fn send(
self,
) -> Result<CreateConnectionOutput, SdkError<CreateConnectionError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateConnectionOutput, SdkError<CreateConnectionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Sourcepub fn customize(
self,
) -> CustomizableOperation<CreateConnectionOutput, CreateConnectionError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateConnectionOutput, CreateConnectionError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
Sourcepub fn client_token(self, input: impl Into<String>) -> Self
pub fn client_token(self, input: impl Into<String>) -> Self
A client idempotency token. It is optional, so the AWS SDKs can generate it automatically and reuse it on retries. A retry with an identical request returns the original connection. A different request returns ValidationException. acknowledgements, tags and, once the connection is ACTIVE, publish are not compared with the original request. A create refused for a missing acknowledgement records no token.
Sourcepub fn set_client_token(self, input: Option<String>) -> Self
pub fn set_client_token(self, input: Option<String>) -> Self
A client idempotency token. It is optional, so the AWS SDKs can generate it automatically and reuse it on retries. A retry with an identical request returns the original connection. A different request returns ValidationException. acknowledgements, tags and, once the connection is ACTIVE, publish are not compared with the original request. A create refused for a missing acknowledgement records no token.
Sourcepub fn get_client_token(&self) -> &Option<String>
pub fn get_client_token(&self) -> &Option<String>
A client idempotency token. It is optional, so the AWS SDKs can generate it automatically and reuse it on retries. A retry with an identical request returns the original connection. A different request returns ValidationException. acknowledgements, tags and, once the connection is ACTIVE, publish are not compared with the original request. A create refused for a missing acknowledgement records no token.
Sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the connection. Required. You can change it later with UpdateConnection. Starts with a letter and contains 3–63 ASCII letters, digits, and hyphens.
Sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the connection. Required. You can change it later with UpdateConnection. Starts with a letter and contains 3–63 ASCII letters, digits, and hyphens.
Sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the connection. Required. You can change it later with UpdateConnection. Starts with a letter and contains 3–63 ASCII letters, digits, and hyphens.
Sourcepub fn data_source(self, input: DataSourceReference) -> Self
pub fn data_source(self, input: DataSourceReference) -> Self
The external data source that this connection binds to: its type and location.arn. The ARN must be in your account, except for GLUE_DATA_CATALOG, where it can name a catalog or an AWS Glue connection in another account.
-
GLUE_DATA_CATALOG- An AWS Glue Data Catalog ARN (:catalogor:catalog/<path>), or the ARN of an existing AWS Glue connection (:connection/<name>) for a federated AWS data source such as Amazon Redshift or Amazon RDS. The AWS Glue connection must be a unified connection (ConnectionSchemaVersion 2) in your partition and Region that you can read. You can't specifyscopewith an AWS Glue connection ARN. While AWS Glue is still validating the connection, the request fails withConflictException. If its validation failed, the request fails withAccessDeniedException. -
DATABRICKSorSNOWFLAKE- The ARN of an existing AWS Glue connection whose AWS Glue ConnectionType matchestype. AWS Context validates its Credential Broker settings, if present, and doesn't store them.
Sourcepub fn set_data_source(self, input: Option<DataSourceReference>) -> Self
pub fn set_data_source(self, input: Option<DataSourceReference>) -> Self
The external data source that this connection binds to: its type and location.arn. The ARN must be in your account, except for GLUE_DATA_CATALOG, where it can name a catalog or an AWS Glue connection in another account.
-
GLUE_DATA_CATALOG- An AWS Glue Data Catalog ARN (:catalogor:catalog/<path>), or the ARN of an existing AWS Glue connection (:connection/<name>) for a federated AWS data source such as Amazon Redshift or Amazon RDS. The AWS Glue connection must be a unified connection (ConnectionSchemaVersion 2) in your partition and Region that you can read. You can't specifyscopewith an AWS Glue connection ARN. While AWS Glue is still validating the connection, the request fails withConflictException. If its validation failed, the request fails withAccessDeniedException. -
DATABRICKSorSNOWFLAKE- The ARN of an existing AWS Glue connection whose AWS Glue ConnectionType matchestype. AWS Context validates its Credential Broker settings, if present, and doesn't store them.
Sourcepub fn get_data_source(&self) -> &Option<DataSourceReference>
pub fn get_data_source(&self) -> &Option<DataSourceReference>
The external data source that this connection binds to: its type and location.arn. The ARN must be in your account, except for GLUE_DATA_CATALOG, where it can name a catalog or an AWS Glue connection in another account.
-
GLUE_DATA_CATALOG- An AWS Glue Data Catalog ARN (:catalogor:catalog/<path>), or the ARN of an existing AWS Glue connection (:connection/<name>) for a federated AWS data source such as Amazon Redshift or Amazon RDS. The AWS Glue connection must be a unified connection (ConnectionSchemaVersion 2) in your partition and Region that you can read. You can't specifyscopewith an AWS Glue connection ARN. While AWS Glue is still validating the connection, the request fails withConflictException. If its validation failed, the request fails withAccessDeniedException. -
DATABRICKSorSNOWFLAKE- The ARN of an existing AWS Glue connection whose AWS Glue ConnectionType matchestype. AWS Context validates its Credential Broker settings, if present, and doesn't store them.
Sourcepub fn scope(self, input: DataSourceScope) -> Self
pub fn scope(self, input: DataSourceScope) -> Self
Optional hierarchical subset of the data source to ingest. Absent means the whole source. A DATABRICKS scope names at most one databricksCatalog, and a SNOWFLAKE scope one snowflakeDatabase. A GLUE_DATA_CATALOG scope can select by service with a glueService segment (see DataSourceScope). An unknown service name, a repeated or misplaced glueService segment, a later level of another service, or glueService on another connection type returns ValidationException.
Sourcepub fn set_scope(self, input: Option<DataSourceScope>) -> Self
pub fn set_scope(self, input: Option<DataSourceScope>) -> Self
Optional hierarchical subset of the data source to ingest. Absent means the whole source. A DATABRICKS scope names at most one databricksCatalog, and a SNOWFLAKE scope one snowflakeDatabase. A GLUE_DATA_CATALOG scope can select by service with a glueService segment (see DataSourceScope). An unknown service name, a repeated or misplaced glueService segment, a later level of another service, or glueService on another connection type returns ValidationException.
Sourcepub fn get_scope(&self) -> &Option<DataSourceScope>
pub fn get_scope(&self) -> &Option<DataSourceScope>
Optional hierarchical subset of the data source to ingest. Absent means the whole source. A DATABRICKS scope names at most one databricksCatalog, and a SNOWFLAKE scope one snowflakeDatabase. A GLUE_DATA_CATALOG scope can select by service with a glueService segment (see DataSourceScope). An unknown service name, a repeated or misplaced glueService segment, a later level of another service, or glueService on another connection type returns ValidationException.
Sourcepub fn access_config(self, input: AccessConfig) -> Self
pub fn access_config(self, input: AccessConfig) -> Self
The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access. Optional.
For GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE, iamRole is the IAM role that AWS Context assumes to read the source and the AWS Glue connections in glueConnectionMappings. If you omit accessConfig or set no variant, AWS Context reads them with your own credentials. This applies whether the source is in your account or another account. For a source in another account, AWS Context checks when it creates the connection that iamRole can read the source, and the request fails if it can't. A source in another account with no iamRole isn't checked when the connection is created. An accessConfig with no variant is stored as absent and is not returned on the connection.
For DATABRICKS and SNOWFLAKE, AWS Glue reads the source with the ROLE_ARN of the AWS Glue connection in dataSource, not with accessConfig. For these types, accessConfig is reserved for other roles.
Sourcepub fn set_access_config(self, input: Option<AccessConfig>) -> Self
pub fn set_access_config(self, input: Option<AccessConfig>) -> Self
The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access. Optional.
For GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE, iamRole is the IAM role that AWS Context assumes to read the source and the AWS Glue connections in glueConnectionMappings. If you omit accessConfig or set no variant, AWS Context reads them with your own credentials. This applies whether the source is in your account or another account. For a source in another account, AWS Context checks when it creates the connection that iamRole can read the source, and the request fails if it can't. A source in another account with no iamRole isn't checked when the connection is created. An accessConfig with no variant is stored as absent and is not returned on the connection.
For DATABRICKS and SNOWFLAKE, AWS Glue reads the source with the ROLE_ARN of the AWS Glue connection in dataSource, not with accessConfig. For these types, accessConfig is reserved for other roles.
Sourcepub fn get_access_config(&self) -> &Option<AccessConfig>
pub fn get_access_config(&self) -> &Option<AccessConfig>
The access configuration for the data source, which names the AWS Identity and Access Management (IAM) role for data access. Optional.
For GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE, iamRole is the IAM role that AWS Context assumes to read the source and the AWS Glue connections in glueConnectionMappings. If you omit accessConfig or set no variant, AWS Context reads them with your own credentials. This applies whether the source is in your account or another account. For a source in another account, AWS Context checks when it creates the connection that iamRole can read the source, and the request fails if it can't. A source in another account with no iamRole isn't checked when the connection is created. An accessConfig with no variant is stored as absent and is not returned on the connection.
For DATABRICKS and SNOWFLAKE, AWS Glue reads the source with the ROLE_ARN of the AWS Glue connection in dataSource, not with accessConfig. For these types, accessConfig is reserved for other roles.
Sourcepub fn sync_schedule(self, input: SyncSchedule) -> Self
pub fn sync_schedule(self, input: SyncSchedule) -> Self
How often AWS Context re-syncs a DATABRICKS or SNOWFLAKE source. If you omit it, the default is DAILY. Not accepted for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections. You can change it with UpdateConnection.
Sourcepub fn set_sync_schedule(self, input: Option<SyncSchedule>) -> Self
pub fn set_sync_schedule(self, input: Option<SyncSchedule>) -> Self
How often AWS Context re-syncs a DATABRICKS or SNOWFLAKE source. If you omit it, the default is DAILY. Not accepted for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections. You can change it with UpdateConnection.
Sourcepub fn get_sync_schedule(&self) -> &Option<SyncSchedule>
pub fn get_sync_schedule(&self) -> &Option<SyncSchedule>
How often AWS Context re-syncs a DATABRICKS or SNOWFLAKE source. If you omit it, the default is DAILY. Not accepted for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections. You can change it with UpdateConnection.
Sourcepub fn ingestion_config(self, input: IngestionConfig) -> Self
pub fn ingestion_config(self, input: IngestionConfig) -> Self
The ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection's agent contexts. It is separate from accessConfig, which names the role that AWS Context assumes to read the source. Required, because a connection can't ingest data without a role that its data producer can assume. You must have iam:PassRole permission to pass this role to the data producer, and the role must be in your account.
Sourcepub fn set_ingestion_config(self, input: Option<IngestionConfig>) -> Self
pub fn set_ingestion_config(self, input: Option<IngestionConfig>) -> Self
The ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection's agent contexts. It is separate from accessConfig, which names the role that AWS Context assumes to read the source. Required, because a connection can't ingest data without a role that its data producer can assume. You must have iam:PassRole permission to pass this role to the data producer, and the role must be in your account.
Sourcepub fn get_ingestion_config(&self) -> &Option<IngestionConfig>
pub fn get_ingestion_config(&self) -> &Option<IngestionConfig>
The ingestion configuration: the IAM role that a data producer (AWS Glue Data Catalog or Amazon Bedrock knowledge base) assumes to push data into this connection's agent contexts. It is separate from accessConfig, which names the role that AWS Context assumes to read the source. Required, because a connection can't ingest data without a role that its data producer can assume. You must have iam:PassRole permission to pass this role to the data producer, and the role must be in your account.
Sourcepub fn glue_connection_mappings(self, input: GlueConnectionMapping) -> Self
pub fn glue_connection_mappings(self, input: GlueConnectionMapping) -> Self
Appends an item to glueConnectionMappings.
To override the contents of this collection use set_glue_connection_mappings.
The AWS Glue connection to use for each redshiftNamespace, each rdsInstance and rdsDatabase pair, or each snowflakeDatabase in scope, keyed by path. Optional. You can specify 0–20 entries. The following rules apply:
-
Once an entry names a level, every resource of that level in
scopeneeds an entry. While an entry namesrdsInstance, every selector that names anrdsInstancemust also name itsrdsDatabase. -
redshiftNamespaceandrdsInstanceentries requiredataSourceto be an AWS Glue Data Catalog ARN.accessConfig.iamRoleis optional. -
snowflakeDatabaseentries requiredataSourceto be an AWS Glue connection ARN. -
While any entry is present,
scopecannot contain a selector that names only a catalog or aglueService, because such a selector covers every resource of the catalog or service. Otherwise, a selector with aglueServicesegment follows these rules as it would without that segment. An entry'spathnever namesglueService. -
A selector that names only
glueServiceREDSHIFTorRDS, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service's metadata, and you cannot query its data.
Sourcepub fn set_glue_connection_mappings(
self,
input: Option<Vec<GlueConnectionMapping>>,
) -> Self
pub fn set_glue_connection_mappings( self, input: Option<Vec<GlueConnectionMapping>>, ) -> Self
The AWS Glue connection to use for each redshiftNamespace, each rdsInstance and rdsDatabase pair, or each snowflakeDatabase in scope, keyed by path. Optional. You can specify 0–20 entries. The following rules apply:
-
Once an entry names a level, every resource of that level in
scopeneeds an entry. While an entry namesrdsInstance, every selector that names anrdsInstancemust also name itsrdsDatabase. -
redshiftNamespaceandrdsInstanceentries requiredataSourceto be an AWS Glue Data Catalog ARN.accessConfig.iamRoleis optional. -
snowflakeDatabaseentries requiredataSourceto be an AWS Glue connection ARN. -
While any entry is present,
scopecannot contain a selector that names only a catalog or aglueService, because such a selector covers every resource of the catalog or service. Otherwise, a selector with aglueServicesegment follows these rules as it would without that segment. An entry'spathnever namesglueService. -
A selector that names only
glueServiceREDSHIFTorRDS, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service's metadata, and you cannot query its data.
Sourcepub fn get_glue_connection_mappings(
&self,
) -> &Option<Vec<GlueConnectionMapping>>
pub fn get_glue_connection_mappings( &self, ) -> &Option<Vec<GlueConnectionMapping>>
The AWS Glue connection to use for each redshiftNamespace, each rdsInstance and rdsDatabase pair, or each snowflakeDatabase in scope, keyed by path. Optional. You can specify 0–20 entries. The following rules apply:
-
Once an entry names a level, every resource of that level in
scopeneeds an entry. While an entry namesrdsInstance, every selector that names anrdsInstancemust also name itsrdsDatabase. -
redshiftNamespaceandrdsInstanceentries requiredataSourceto be an AWS Glue Data Catalog ARN.accessConfig.iamRoleis optional. -
snowflakeDatabaseentries requiredataSourceto be an AWS Glue connection ARN. -
While any entry is present,
scopecannot contain a selector that names only a catalog or aglueService, because such a selector covers every resource of the catalog or service. Otherwise, a selector with aglueServicesegment follows these rules as it would without that segment. An entry'spathnever namesglueService. -
A selector that names only
glueServiceREDSHIFTorRDS, with no namespace or instance, cannot be combined with any entry. Such a connection reads only the service's metadata, and you cannot query its data.
Sourcepub fn publish(self, input: bool) -> Self
pub fn publish(self, input: bool) -> Self
Specifies whether to configure catalog synchronization and wait for it to be provisioned during this call. If you omit it, the default is true. For a DATABRICKS or SNOWFLAKE connection, false validates only the AWS Glue connection. The connection is returned as CREATING with subStatus GLUE_CONNECTION_VALIDATED, and you publish it later by calling UpdateConnection with publish set to true. Ignored for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections, which have no sync job.
Sourcepub fn set_publish(self, input: Option<bool>) -> Self
pub fn set_publish(self, input: Option<bool>) -> Self
Specifies whether to configure catalog synchronization and wait for it to be provisioned during this call. If you omit it, the default is true. For a DATABRICKS or SNOWFLAKE connection, false validates only the AWS Glue connection. The connection is returned as CREATING with subStatus GLUE_CONNECTION_VALIDATED, and you publish it later by calling UpdateConnection with publish set to true. Ignored for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections, which have no sync job.
Sourcepub fn get_publish(&self) -> &Option<bool>
pub fn get_publish(&self) -> &Option<bool>
Specifies whether to configure catalog synchronization and wait for it to be provisioned during this call. If you omit it, the default is true. For a DATABRICKS or SNOWFLAKE connection, false validates only the AWS Glue connection. The connection is returned as CREATING with subStatus GLUE_CONNECTION_VALIDATED, and you publish it later by calling UpdateConnection with publish set to true. Ignored for GLUE_DATA_CATALOG and BEDROCK_KNOWLEDGE_BASE connections, which have no sync job.
Sourcepub fn acknowledgements(self, input: impl Into<String>) -> Self
pub fn acknowledgements(self, input: impl Into<String>) -> Self
Appends an item to acknowledgements.
To override the contents of this collection use set_acknowledgements.
The conditions that you acknowledge AWS Context can't honor. Specify CUSTOMER_MANAGED_KEY when the knowledge base is encrypted with an AWS KMS customer managed key and you accept that AWS Context stores the ingested data under AWS owned keys. If you omit it, creating a connection to such a knowledge base fails with ValidationException. An unknown or repeated value also fails with ValidationException.
Sourcepub fn set_acknowledgements(self, input: Option<Vec<String>>) -> Self
pub fn set_acknowledgements(self, input: Option<Vec<String>>) -> Self
The conditions that you acknowledge AWS Context can't honor. Specify CUSTOMER_MANAGED_KEY when the knowledge base is encrypted with an AWS KMS customer managed key and you accept that AWS Context stores the ingested data under AWS owned keys. If you omit it, creating a connection to such a knowledge base fails with ValidationException. An unknown or repeated value also fails with ValidationException.
Sourcepub fn get_acknowledgements(&self) -> &Option<Vec<String>>
pub fn get_acknowledgements(&self) -> &Option<Vec<String>>
The conditions that you acknowledge AWS Context can't honor. Specify CUSTOMER_MANAGED_KEY when the knowledge base is encrypted with an AWS KMS customer managed key and you accept that AWS Context stores the ingested data under AWS owned keys. If you omit it, creating a connection to such a knowledge base fails with ValidationException. An unknown or repeated value also fails with ValidationException.
Adds a key-value pair to tags.
To override the contents of this collection use set_tags.
Tags to add to the connection when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with aws:. To add tags, you also need context:TagResource permission on the new connection. If you specify more than 50 user tags, the request fails with ServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with ValidationException.
Tags to add to the connection when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with aws:. To add tags, you also need context:TagResource permission on the new connection. If you specify more than 50 user tags, the request fails with ServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with ValidationException.
Tags to add to the connection when you create it: up to 200 in the request, of which at most 50 can be user tags. Keys can't start with aws:. To add tags, you also need context:TagResource permission on the new connection. If you specify more than 50 user tags, the request fails with ServiceQuotaExceededException, as on TagResource. If an AWS Organizations tag policy refuses a tag, the request fails with ValidationException.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for CreateConnectionFluentBuilder
impl !UnwindSafe for CreateConnectionFluentBuilder
impl Forget for CreateConnectionFluentBuilder
impl Freeze for CreateConnectionFluentBuilderwhere
*const ArcInner<Handle> is !null: Freeze,
PhantomData<ArcInner<Handle>>: Freeze,
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<ResourceSelector>: Freeze,
PhantomData<GlueConnectionMapping>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, String)>: Freeze,
&'static str: Freeze,
String: Freeze,
PhantomData<fn() -> IdHasher>: Freeze,
PhantomData<(TypeId, TypeErasedBox)>: Freeze,
*const ArcInner<dyn ResolveAuthSchemeOptions> is !null: Freeze,
PhantomData<ArcInner<dyn ResolveAuthSchemeOptions>>: Freeze,
*const ArcInner<dyn HttpClient> is !null: Freeze,
PhantomData<ArcInner<dyn HttpClient>>: Freeze,
*const ArcInner<dyn ResolveEndpoint> is !null: Freeze,
PhantomData<ArcInner<dyn ResolveEndpoint>>: Freeze,
PhantomData<(AuthSchemeId, Tracked<SharedAuthScheme>)>: Freeze,
*const ArcInner<dyn ResolveCachedIdentity> is !null: Freeze,
PhantomData<ArcInner<dyn ResolveCachedIdentity>>: Freeze,
PhantomData<(AuthSchemeId, Tracked<SharedIdentityResolver>)>: Freeze,
PhantomData<Tracked<SharedInterceptor>>: Freeze,
PhantomData<Tracked<SharedRetryClassifier>>: Freeze,
*const ArcInner<dyn RetryStrategy> is !null: Freeze,
PhantomData<ArcInner<dyn RetryStrategy>>: Freeze,
*const ArcInner<dyn TimeSource> is !null: Freeze,
PhantomData<ArcInner<dyn TimeSource>>: Freeze,
*const ArcInner<dyn AsyncSleep> is !null: Freeze,
PhantomData<ArcInner<dyn AsyncSleep>>: Freeze,
PhantomData<Tracked<SharedConfigValidator>>: Freeze,
PhantomData<SharedRuntimePlugin>: Freeze,
impl Move for CreateConnectionFluentBuilder
impl Send for CreateConnectionFluentBuilderwhere
Arc<Handle>: Send,
RawVecInner: Send,
RawTable<(String, String)>: Send,
&'static str: Send,
String: Send,
RawTable<(TypeId, TypeErasedBox)>: Send,
Arc<dyn ResolveAuthSchemeOptions>: Send,
Arc<dyn HttpClient>: Send,
Arc<dyn ResolveEndpoint>: Send,
RawTable<(AuthSchemeId, Tracked<SharedAuthScheme>)>: Send,
Arc<dyn ResolveCachedIdentity>: Send,
RawTable<(AuthSchemeId, Tracked<SharedIdentityResolver>)>: Send,
Arc<dyn Intercept>: Send,
Arc<dyn Fn(&ConfigBag) -> bool + Send + Sync>: Send,
Arc<dyn ClassifyRetry>: Send,
Arc<dyn RetryStrategy>: Send,
Arc<dyn TimeSource>: Send,
Arc<dyn AsyncSleep>: Send,
Arc<dyn ValidateConfig>: Send,
Arc<dyn RuntimePlugin>: Send,
impl Sync for CreateConnectionFluentBuilderwhere
Arc<Handle>: Sync,
RawVecInner: Sync,
RawTable<(String, String)>: Sync,
String: Sync,
RawTable<(TypeId, TypeErasedBox)>: Sync,
Arc<dyn ResolveAuthSchemeOptions>: Sync,
Arc<dyn HttpClient>: Sync,
Arc<dyn ResolveEndpoint>: Sync,
RawTable<(AuthSchemeId, Tracked<SharedAuthScheme>)>: Sync,
Arc<dyn ResolveCachedIdentity>: Sync,
RawTable<(AuthSchemeId, Tracked<SharedIdentityResolver>)>: Sync,
Arc<dyn Intercept>: Sync,
Arc<dyn Fn(&ConfigBag) -> bool + Send + Sync>: Sync,
Arc<dyn ClassifyRetry>: Sync,
Arc<dyn RetryStrategy>: Sync,
Arc<dyn TimeSource>: Sync,
Arc<dyn AsyncSleep>: Sync,
Arc<dyn ValidateConfig>: Sync,
Arc<dyn RuntimePlugin>: Sync,
impl Unpin for CreateConnectionFluentBuilderwhere
Arc<Handle>: Unpin,
*const u8 is !null: Unpin,
&'static str: Unpin,
String: Unpin,
*const (): Unpin,
Box<dyn Any + Send + Sync>: Unpin,
Arc<dyn Fn(&Box<dyn Any + Send + Sync>, &mut Formatter<'_>) -> Result<(), Error> + Send + Sync>: Unpin,
Arc<dyn Fn(&Box<dyn Any + Send + Sync>) -> TypeErasedBox + Send + Sync>: Unpin,
Arc<dyn ResolveAuthSchemeOptions>: Unpin,
Arc<dyn HttpClient>: Unpin,
Arc<dyn ResolveEndpoint>: Unpin,
Arc<dyn AuthScheme>: Unpin,
Arc<dyn ResolveCachedIdentity>: Unpin,
Arc<dyn ResolveIdentity>: Unpin,
Arc<dyn Intercept>: Unpin,
Arc<dyn Fn(&ConfigBag) -> bool + Send + Sync>: Unpin,
Arc<dyn ClassifyRetry>: Unpin,
Arc<dyn RetryStrategy>: Unpin,
Arc<dyn TimeSource>: Unpin,
Arc<dyn AsyncSleep>: Unpin,
Arc<dyn ValidateConfig>: Unpin,
Arc<dyn RuntimePlugin>: Unpin,
impl UnsafeUnpin for CreateConnectionFluentBuilderwhere
*const ArcInner<Handle> is !null: UnsafeUnpin,
PhantomData<ArcInner<Handle>>: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<ResourceSelector>: UnsafeUnpin,
PhantomData<GlueConnectionMapping>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
&'static str: UnsafeUnpin,
String: UnsafeUnpin,
PhantomData<fn() -> IdHasher>: UnsafeUnpin,
PhantomData<(TypeId, TypeErasedBox)>: UnsafeUnpin,
*const ArcInner<dyn ResolveAuthSchemeOptions> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ResolveAuthSchemeOptions>>: UnsafeUnpin,
*const ArcInner<dyn HttpClient> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn HttpClient>>: UnsafeUnpin,
*const ArcInner<dyn ResolveEndpoint> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ResolveEndpoint>>: UnsafeUnpin,
PhantomData<(AuthSchemeId, Tracked<SharedAuthScheme>)>: UnsafeUnpin,
*const ArcInner<dyn ResolveCachedIdentity> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn ResolveCachedIdentity>>: UnsafeUnpin,
PhantomData<(AuthSchemeId, Tracked<SharedIdentityResolver>)>: UnsafeUnpin,
PhantomData<Tracked<SharedInterceptor>>: UnsafeUnpin,
PhantomData<Tracked<SharedRetryClassifier>>: UnsafeUnpin,
*const ArcInner<dyn RetryStrategy> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn RetryStrategy>>: UnsafeUnpin,
*const ArcInner<dyn TimeSource> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn TimeSource>>: UnsafeUnpin,
*const ArcInner<dyn AsyncSleep> is !null: UnsafeUnpin,
PhantomData<ArcInner<dyn AsyncSleep>>: UnsafeUnpin,
PhantomData<Tracked<SharedConfigValidator>>: UnsafeUnpin,
PhantomData<SharedRuntimePlugin>: UnsafeUnpin,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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>
renamed to 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);