aws_sdk_workmail

Enum Error

Source
#[non_exhaustive]
pub enum Error {
Show 23 variants DirectoryInUseException(DirectoryInUseException), DirectoryServiceAuthenticationFailedException(DirectoryServiceAuthenticationFailedException), DirectoryUnavailableException(DirectoryUnavailableException), EmailAddressInUseException(EmailAddressInUseException), EntityAlreadyRegisteredException(EntityAlreadyRegisteredException), EntityNotFoundException(EntityNotFoundException), EntityStateException(EntityStateException), InvalidConfigurationException(InvalidConfigurationException), InvalidCustomSesConfigurationException(InvalidCustomSesConfigurationException), InvalidParameterException(InvalidParameterException), InvalidPasswordException(InvalidPasswordException), LimitExceededException(LimitExceededException), MailDomainInUseException(MailDomainInUseException), MailDomainNotFoundException(MailDomainNotFoundException), MailDomainStateException(MailDomainStateException), NameAvailabilityException(NameAvailabilityException), OrganizationNotFoundException(OrganizationNotFoundException), OrganizationStateException(OrganizationStateException), ReservedNameException(ReservedNameException), ResourceNotFoundException(ResourceNotFoundException), TooManyTagsException(TooManyTagsException), UnsupportedOperationException(UnsupportedOperationException), Unhandled(Unhandled),
}
Expand description

All possible error types for this service.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

DirectoryInUseException(DirectoryInUseException)

The directory is already in use by another WorkMail organization in the same account and Region.

§

DirectoryServiceAuthenticationFailedException(DirectoryServiceAuthenticationFailedException)

The directory service doesn't recognize the credentials supplied by WorkMail.

§

DirectoryUnavailableException(DirectoryUnavailableException)

The directory is unavailable. It might be located in another Region or deleted.

§

EmailAddressInUseException(EmailAddressInUseException)

The email address that you're trying to assign is already created for a different user, group, or resource.

§

EntityAlreadyRegisteredException(EntityAlreadyRegisteredException)

The user, group, or resource that you're trying to register is already registered.

§

EntityNotFoundException(EntityNotFoundException)

The identifier supplied for the user, group, or resource does not exist in your organization.

§

EntityStateException(EntityStateException)

You are performing an operation on a user, group, or resource that isn't in the expected state, such as trying to delete an active user.

§

InvalidConfigurationException(InvalidConfigurationException)

The configuration for a resource isn't valid. A resource must either be able to auto-respond to requests or have at least one delegate associated that can do so on its behalf.

§

InvalidCustomSesConfigurationException(InvalidCustomSesConfigurationException)

You SES configuration has customizations that WorkMail cannot save. The error message lists the invalid setting. For examples of invalid settings, refer to CreateReceiptRule.

§

InvalidParameterException(InvalidParameterException)

One or more of the input parameters don't match the service's restrictions.

§

InvalidPasswordException(InvalidPasswordException)

The supplied password doesn't match the minimum security constraints, such as length or use of special characters.

§

LimitExceededException(LimitExceededException)

The request exceeds the limit of the resource.

§

MailDomainInUseException(MailDomainInUseException)

The domain you're trying to change is in use by another user or organization in your account. See the error message for details.

§

MailDomainNotFoundException(MailDomainNotFoundException)

The domain specified is not found in your organization.

§

MailDomainStateException(MailDomainStateException)

After a domain has been added to the organization, it must be verified. The domain is not yet verified.

§

NameAvailabilityException(NameAvailabilityException)

The user, group, or resource name isn't unique in WorkMail.

§

OrganizationNotFoundException(OrganizationNotFoundException)

An operation received a valid organization identifier that either doesn't belong or exist in the system.

§

OrganizationStateException(OrganizationStateException)

The organization must have a valid state to perform certain operations on the organization or its members.

§

ReservedNameException(ReservedNameException)

This user, group, or resource name is not allowed in WorkMail.

§

ResourceNotFoundException(ResourceNotFoundException)

The resource cannot be found.

§

TooManyTagsException(TooManyTagsException)

The resource can have up to 50 user-applied tags.

§

UnsupportedOperationException(UnsupportedOperationException)

You can't perform a write operation against a read-only directory.

§

Unhandled(Unhandled)

👎Deprecated: Matching Unhandled directly is not forwards compatible. Instead, match using a variable wildcard pattern and check .code():    err if err.code() == Some("SpecificExceptionCode") => { /* handle the error */ } See ProvideErrorMetadata for what information is available for the error.

An unexpected error occurred (e.g., invalid JSON returned by the service or an unknown error code).

Trait Implementations§

Source§

impl Debug for Error

Source§

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

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

impl Display for Error

Source§

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

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

impl Error for Error

Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0: use the Display impl or to_string()
1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<AssociateDelegateToResourceError> for Error

Source§

fn from(err: AssociateDelegateToResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<AssociateMemberToGroupError> for Error

Source§

fn from(err: AssociateMemberToGroupError) -> Self

Converts to this type from the input type.
Source§

impl From<AssumeImpersonationRoleError> for Error

Source§

fn from(err: AssumeImpersonationRoleError) -> Self

Converts to this type from the input type.
Source§

impl From<BuildError> for Error

Source§

fn from(value: BuildError) -> Self

Converts to this type from the input type.
Source§

impl From<CancelMailboxExportJobError> for Error

Source§

fn from(err: CancelMailboxExportJobError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateAliasError> for Error

Source§

fn from(err: CreateAliasError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateAvailabilityConfigurationError> for Error

Source§

fn from(err: CreateAvailabilityConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateGroupError> for Error

Source§

fn from(err: CreateGroupError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateIdentityCenterApplicationError> for Error

Source§

fn from(err: CreateIdentityCenterApplicationError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateImpersonationRoleError> for Error

Source§

fn from(err: CreateImpersonationRoleError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateMobileDeviceAccessRuleError> for Error

Source§

fn from(err: CreateMobileDeviceAccessRuleError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateOrganizationError> for Error

Source§

fn from(err: CreateOrganizationError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateResourceError> for Error

Source§

fn from(err: CreateResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateUserError> for Error

Source§

fn from(err: CreateUserError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteAccessControlRuleError> for Error

Source§

fn from(err: DeleteAccessControlRuleError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteAliasError> for Error

Source§

fn from(err: DeleteAliasError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteAvailabilityConfigurationError> for Error

Source§

fn from(err: DeleteAvailabilityConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteEmailMonitoringConfigurationError> for Error

Source§

fn from(err: DeleteEmailMonitoringConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteGroupError> for Error

Source§

fn from(err: DeleteGroupError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteIdentityCenterApplicationError> for Error

Source§

fn from(err: DeleteIdentityCenterApplicationError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteIdentityProviderConfigurationError> for Error

Source§

fn from(err: DeleteIdentityProviderConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteImpersonationRoleError> for Error

Source§

fn from(err: DeleteImpersonationRoleError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteMailboxPermissionsError> for Error

Source§

fn from(err: DeleteMailboxPermissionsError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteMobileDeviceAccessOverrideError> for Error

Source§

fn from(err: DeleteMobileDeviceAccessOverrideError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteMobileDeviceAccessRuleError> for Error

Source§

fn from(err: DeleteMobileDeviceAccessRuleError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteOrganizationError> for Error

Source§

fn from(err: DeleteOrganizationError) -> Self

Converts to this type from the input type.
Source§

impl From<DeletePersonalAccessTokenError> for Error

Source§

fn from(err: DeletePersonalAccessTokenError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteResourceError> for Error

Source§

fn from(err: DeleteResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteRetentionPolicyError> for Error

Source§

fn from(err: DeleteRetentionPolicyError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteUserError> for Error

Source§

fn from(err: DeleteUserError) -> Self

Converts to this type from the input type.
Source§

impl From<DeregisterFromWorkMailError> for Error

Source§

fn from(err: DeregisterFromWorkMailError) -> Self

Converts to this type from the input type.
Source§

impl From<DeregisterMailDomainError> for Error

Source§

fn from(err: DeregisterMailDomainError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeEmailMonitoringConfigurationError> for Error

Source§

fn from(err: DescribeEmailMonitoringConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeEntityError> for Error

Source§

fn from(err: DescribeEntityError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeGroupError> for Error

Source§

fn from(err: DescribeGroupError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeIdentityProviderConfigurationError> for Error

Source§

fn from(err: DescribeIdentityProviderConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeInboundDmarcSettingsError> for Error

Source§

fn from(err: DescribeInboundDmarcSettingsError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeMailboxExportJobError> for Error

Source§

fn from(err: DescribeMailboxExportJobError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeOrganizationError> for Error

Source§

fn from(err: DescribeOrganizationError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeResourceError> for Error

Source§

fn from(err: DescribeResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<DescribeUserError> for Error

Source§

fn from(err: DescribeUserError) -> Self

Converts to this type from the input type.
Source§

impl From<DisassociateDelegateFromResourceError> for Error

Source§

fn from(err: DisassociateDelegateFromResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<DisassociateMemberFromGroupError> for Error

Source§

fn from(err: DisassociateMemberFromGroupError) -> Self

Converts to this type from the input type.
Source§

impl From<GetAccessControlEffectError> for Error

Source§

fn from(err: GetAccessControlEffectError) -> Self

Converts to this type from the input type.
Source§

impl From<GetDefaultRetentionPolicyError> for Error

Source§

fn from(err: GetDefaultRetentionPolicyError) -> Self

Converts to this type from the input type.
Source§

impl From<GetImpersonationRoleEffectError> for Error

Source§

fn from(err: GetImpersonationRoleEffectError) -> Self

Converts to this type from the input type.
Source§

impl From<GetImpersonationRoleError> for Error

Source§

fn from(err: GetImpersonationRoleError) -> Self

Converts to this type from the input type.
Source§

impl From<GetMailDomainError> for Error

Source§

fn from(err: GetMailDomainError) -> Self

Converts to this type from the input type.
Source§

impl From<GetMailboxDetailsError> for Error

Source§

fn from(err: GetMailboxDetailsError) -> Self

Converts to this type from the input type.
Source§

impl From<GetMobileDeviceAccessEffectError> for Error

Source§

fn from(err: GetMobileDeviceAccessEffectError) -> Self

Converts to this type from the input type.
Source§

impl From<GetMobileDeviceAccessOverrideError> for Error

Source§

fn from(err: GetMobileDeviceAccessOverrideError) -> Self

Converts to this type from the input type.
Source§

impl From<GetPersonalAccessTokenMetadataError> for Error

Source§

fn from(err: GetPersonalAccessTokenMetadataError) -> Self

Converts to this type from the input type.
Source§

impl From<ListAccessControlRulesError> for Error

Source§

fn from(err: ListAccessControlRulesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListAliasesError> for Error

Source§

fn from(err: ListAliasesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListAvailabilityConfigurationsError> for Error

Source§

fn from(err: ListAvailabilityConfigurationsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListGroupMembersError> for Error

Source§

fn from(err: ListGroupMembersError) -> Self

Converts to this type from the input type.
Source§

impl From<ListGroupsError> for Error

Source§

fn from(err: ListGroupsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListGroupsForEntityError> for Error

Source§

fn from(err: ListGroupsForEntityError) -> Self

Converts to this type from the input type.
Source§

impl From<ListImpersonationRolesError> for Error

Source§

fn from(err: ListImpersonationRolesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListMailDomainsError> for Error

Source§

fn from(err: ListMailDomainsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListMailboxExportJobsError> for Error

Source§

fn from(err: ListMailboxExportJobsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListMailboxPermissionsError> for Error

Source§

fn from(err: ListMailboxPermissionsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListMobileDeviceAccessOverridesError> for Error

Source§

fn from(err: ListMobileDeviceAccessOverridesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListMobileDeviceAccessRulesError> for Error

Source§

fn from(err: ListMobileDeviceAccessRulesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListOrganizationsError> for Error

Source§

fn from(err: ListOrganizationsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListPersonalAccessTokensError> for Error

Source§

fn from(err: ListPersonalAccessTokensError) -> Self

Converts to this type from the input type.
Source§

impl From<ListResourceDelegatesError> for Error

Source§

fn from(err: ListResourceDelegatesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListResourcesError> for Error

Source§

fn from(err: ListResourcesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListTagsForResourceError> for Error

Source§

fn from(err: ListTagsForResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<ListUsersError> for Error

Source§

fn from(err: ListUsersError) -> Self

Converts to this type from the input type.
Source§

impl From<PutAccessControlRuleError> for Error

Source§

fn from(err: PutAccessControlRuleError) -> Self

Converts to this type from the input type.
Source§

impl From<PutEmailMonitoringConfigurationError> for Error

Source§

fn from(err: PutEmailMonitoringConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<PutIdentityProviderConfigurationError> for Error

Source§

fn from(err: PutIdentityProviderConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<PutInboundDmarcSettingsError> for Error

Source§

fn from(err: PutInboundDmarcSettingsError) -> Self

Converts to this type from the input type.
Source§

impl From<PutMailboxPermissionsError> for Error

Source§

fn from(err: PutMailboxPermissionsError) -> Self

Converts to this type from the input type.
Source§

impl From<PutMobileDeviceAccessOverrideError> for Error

Source§

fn from(err: PutMobileDeviceAccessOverrideError) -> Self

Converts to this type from the input type.
Source§

impl From<PutRetentionPolicyError> for Error

Source§

fn from(err: PutRetentionPolicyError) -> Self

Converts to this type from the input type.
Source§

impl From<RegisterMailDomainError> for Error

Source§

fn from(err: RegisterMailDomainError) -> Self

Converts to this type from the input type.
Source§

impl From<RegisterToWorkMailError> for Error

Source§

fn from(err: RegisterToWorkMailError) -> Self

Converts to this type from the input type.
Source§

impl From<ResetPasswordError> for Error

Source§

fn from(err: ResetPasswordError) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<AssociateDelegateToResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<AssociateDelegateToResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<AssociateMemberToGroupError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<AssociateMemberToGroupError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<AssumeImpersonationRoleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<AssumeImpersonationRoleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CancelMailboxExportJobError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CancelMailboxExportJobError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateAliasError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateAliasError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateAvailabilityConfigurationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateAvailabilityConfigurationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateGroupError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateGroupError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateIdentityCenterApplicationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateIdentityCenterApplicationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateImpersonationRoleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateImpersonationRoleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateMobileDeviceAccessRuleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateMobileDeviceAccessRuleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateOrganizationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateOrganizationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<CreateUserError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<CreateUserError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteAccessControlRuleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteAccessControlRuleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteAliasError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteAliasError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteAvailabilityConfigurationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteAvailabilityConfigurationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteEmailMonitoringConfigurationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteEmailMonitoringConfigurationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteGroupError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteGroupError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteIdentityCenterApplicationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteIdentityCenterApplicationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteIdentityProviderConfigurationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteIdentityProviderConfigurationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteImpersonationRoleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteImpersonationRoleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteMailboxPermissionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteMailboxPermissionsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteMobileDeviceAccessOverrideError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteMobileDeviceAccessOverrideError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteMobileDeviceAccessRuleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteMobileDeviceAccessRuleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteOrganizationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteOrganizationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeletePersonalAccessTokenError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeletePersonalAccessTokenError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteRetentionPolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteRetentionPolicyError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeleteUserError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeleteUserError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeregisterFromWorkMailError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeregisterFromWorkMailError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DeregisterMailDomainError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DeregisterMailDomainError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeEmailMonitoringConfigurationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeEmailMonitoringConfigurationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeEntityError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeEntityError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeGroupError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeGroupError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeIdentityProviderConfigurationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeIdentityProviderConfigurationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeInboundDmarcSettingsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeInboundDmarcSettingsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeMailboxExportJobError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeMailboxExportJobError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeOrganizationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeOrganizationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DescribeUserError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DescribeUserError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DisassociateDelegateFromResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DisassociateDelegateFromResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<DisassociateMemberFromGroupError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<DisassociateMemberFromGroupError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetAccessControlEffectError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetAccessControlEffectError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetDefaultRetentionPolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetDefaultRetentionPolicyError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetImpersonationRoleEffectError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetImpersonationRoleEffectError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetImpersonationRoleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetImpersonationRoleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetMailDomainError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetMailDomainError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetMailboxDetailsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetMailboxDetailsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetMobileDeviceAccessEffectError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetMobileDeviceAccessEffectError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetMobileDeviceAccessOverrideError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetMobileDeviceAccessOverrideError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<GetPersonalAccessTokenMetadataError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<GetPersonalAccessTokenMetadataError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListAccessControlRulesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListAccessControlRulesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListAliasesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListAliasesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListAvailabilityConfigurationsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListAvailabilityConfigurationsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListGroupMembersError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListGroupMembersError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListGroupsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListGroupsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListGroupsForEntityError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListGroupsForEntityError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListImpersonationRolesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListImpersonationRolesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListMailDomainsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListMailDomainsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListMailboxExportJobsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListMailboxExportJobsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListMailboxPermissionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListMailboxPermissionsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListMobileDeviceAccessOverridesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListMobileDeviceAccessOverridesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListMobileDeviceAccessRulesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListMobileDeviceAccessRulesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListOrganizationsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListOrganizationsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListPersonalAccessTokensError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListPersonalAccessTokensError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListResourceDelegatesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListResourceDelegatesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListResourcesError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListResourcesError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListTagsForResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ListUsersError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ListUsersError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<PutAccessControlRuleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<PutAccessControlRuleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<PutEmailMonitoringConfigurationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<PutEmailMonitoringConfigurationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<PutIdentityProviderConfigurationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<PutIdentityProviderConfigurationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<PutInboundDmarcSettingsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<PutInboundDmarcSettingsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<PutMailboxPermissionsError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<PutMailboxPermissionsError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<PutMobileDeviceAccessOverrideError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<PutMobileDeviceAccessOverrideError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<PutRetentionPolicyError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<PutRetentionPolicyError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RegisterMailDomainError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RegisterMailDomainError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<RegisterToWorkMailError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<RegisterToWorkMailError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<ResetPasswordError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<ResetPasswordError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<StartMailboxExportJobError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<StartMailboxExportJobError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<TagResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<TagResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<TestAvailabilityConfigurationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<TestAvailabilityConfigurationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UntagResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UntagResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateAvailabilityConfigurationError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateAvailabilityConfigurationError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateDefaultMailDomainError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateDefaultMailDomainError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateGroupError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateGroupError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateImpersonationRoleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateImpersonationRoleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateMailboxQuotaError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateMailboxQuotaError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateMobileDeviceAccessRuleError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateMobileDeviceAccessRuleError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdatePrimaryEmailAddressError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdatePrimaryEmailAddressError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateResourceError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateResourceError, R>) -> Self

Converts to this type from the input type.
Source§

impl<R> From<SdkError<UpdateUserError, R>> for Error
where R: Send + Sync + Debug + 'static,

Source§

fn from(err: SdkError<UpdateUserError, R>) -> Self

Converts to this type from the input type.
Source§

impl From<StartMailboxExportJobError> for Error

Source§

fn from(err: StartMailboxExportJobError) -> Self

Converts to this type from the input type.
Source§

impl From<TagResourceError> for Error

Source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<TestAvailabilityConfigurationError> for Error

Source§

fn from(err: TestAvailabilityConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<UntagResourceError> for Error

Source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateAvailabilityConfigurationError> for Error

Source§

fn from(err: UpdateAvailabilityConfigurationError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateDefaultMailDomainError> for Error

Source§

fn from(err: UpdateDefaultMailDomainError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateGroupError> for Error

Source§

fn from(err: UpdateGroupError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateImpersonationRoleError> for Error

Source§

fn from(err: UpdateImpersonationRoleError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateMailboxQuotaError> for Error

Source§

fn from(err: UpdateMailboxQuotaError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateMobileDeviceAccessRuleError> for Error

Source§

fn from(err: UpdateMobileDeviceAccessRuleError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdatePrimaryEmailAddressError> for Error

Source§

fn from(err: UpdatePrimaryEmailAddressError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateResourceError> for Error

Source§

fn from(err: UpdateResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateUserError> for Error

Source§

fn from(err: UpdateUserError) -> Self

Converts to this type from the input type.
Source§

impl ProvideErrorMetadata for Error

Source§

fn meta(&self) -> &ErrorMetadata

Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
Source§

fn code(&self) -> Option<&str>

Returns the error code if it’s available.
Source§

fn message(&self) -> Option<&str>

Returns the error message, if there is one.
Source§

impl RequestId for Error

Source§

fn request_id(&self) -> Option<&str>

Returns the request ID, or None if the service could not be reached.

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

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> 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> ToString for T
where T: Display + ?Sized,

Source§

default fn to_string(&self) -> String

Converts the given value to a String. 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,

Source§

impl<T> MaybeSendSync for T