#[non_exhaustive]pub enum Error {
AccessDeniedException(AccessDeniedException),
ConflictException(ConflictException),
InternalServerException(InternalServerException),
ResourceNotFoundException(ResourceNotFoundException),
ServiceQuotaExceededException(ServiceQuotaExceededException),
ThrottlingException(ThrottlingException),
ValidationException(ValidationException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
AccessDeniedException(AccessDeniedException)
User does not have sufficient access to perform this action.
ConflictException(ConflictException)
The resource has already been processed, was deleted, or is too large.
InternalServerException(InternalServerException)
There is a problem with the Well-Architected Tool API service.
ResourceNotFoundException(ResourceNotFoundException)
The requested resource was not found.
ServiceQuotaExceededException(ServiceQuotaExceededException)
The user has reached their resource quota.
ThrottlingException(ThrottlingException)
Request was denied due to request throttling.
ValidationException(ValidationException)
The user input is not valid.
Unhandled(Unhandled)
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 Error for Error
impl Error for Error
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<AssociateLensesError> for Error
impl From<AssociateLensesError> for Error
Source§fn from(err: AssociateLensesError) -> Self
fn from(err: AssociateLensesError) -> Self
Source§impl From<AssociateProfilesError> for Error
impl From<AssociateProfilesError> for Error
Source§fn from(err: AssociateProfilesError) -> Self
fn from(err: AssociateProfilesError) -> Self
Source§impl From<BuildError> for Error
impl From<BuildError> for Error
Source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Source§fn from(err: CreateLensShareError) -> Self
fn from(err: CreateLensShareError) -> Self
Source§impl From<CreateLensVersionError> for Error
impl From<CreateLensVersionError> for Error
Source§fn from(err: CreateLensVersionError) -> Self
fn from(err: CreateLensVersionError) -> Self
Source§impl From<CreateMilestoneError> for Error
impl From<CreateMilestoneError> for Error
Source§fn from(err: CreateMilestoneError) -> Self
fn from(err: CreateMilestoneError) -> Self
Source§impl From<CreateProfileError> for Error
impl From<CreateProfileError> for Error
Source§fn from(err: CreateProfileError) -> Self
fn from(err: CreateProfileError) -> Self
Source§fn from(err: CreateProfileShareError) -> Self
fn from(err: CreateProfileShareError) -> Self
Source§impl From<CreateReviewTemplateError> for Error
impl From<CreateReviewTemplateError> for Error
Source§fn from(err: CreateReviewTemplateError) -> Self
fn from(err: CreateReviewTemplateError) -> Self
Source§fn from(err: CreateTemplateShareError) -> Self
fn from(err: CreateTemplateShareError) -> Self
Source§impl From<CreateWorkloadError> for Error
impl From<CreateWorkloadError> for Error
Source§fn from(err: CreateWorkloadError) -> Self
fn from(err: CreateWorkloadError) -> Self
Source§fn from(err: CreateWorkloadShareError) -> Self
fn from(err: CreateWorkloadShareError) -> Self
Source§impl From<DeleteLensError> for Error
impl From<DeleteLensError> for Error
Source§fn from(err: DeleteLensError) -> Self
fn from(err: DeleteLensError) -> Self
Source§fn from(err: DeleteLensShareError) -> Self
fn from(err: DeleteLensShareError) -> Self
Source§impl From<DeleteProfileError> for Error
impl From<DeleteProfileError> for Error
Source§fn from(err: DeleteProfileError) -> Self
fn from(err: DeleteProfileError) -> Self
Source§fn from(err: DeleteProfileShareError) -> Self
fn from(err: DeleteProfileShareError) -> Self
Source§impl From<DeleteReviewTemplateError> for Error
impl From<DeleteReviewTemplateError> for Error
Source§fn from(err: DeleteReviewTemplateError) -> Self
fn from(err: DeleteReviewTemplateError) -> Self
Source§fn from(err: DeleteTemplateShareError) -> Self
fn from(err: DeleteTemplateShareError) -> Self
Source§impl From<DeleteWorkloadError> for Error
impl From<DeleteWorkloadError> for Error
Source§fn from(err: DeleteWorkloadError) -> Self
fn from(err: DeleteWorkloadError) -> Self
Source§fn from(err: DeleteWorkloadShareError) -> Self
fn from(err: DeleteWorkloadShareError) -> Self
Source§impl From<DisassociateLensesError> for Error
impl From<DisassociateLensesError> for Error
Source§fn from(err: DisassociateLensesError) -> Self
fn from(err: DisassociateLensesError) -> Self
Source§impl From<DisassociateProfilesError> for Error
impl From<DisassociateProfilesError> for Error
Source§fn from(err: DisassociateProfilesError) -> Self
fn from(err: DisassociateProfilesError) -> Self
Source§impl From<ExportLensError> for Error
impl From<ExportLensError> for Error
Source§fn from(err: ExportLensError) -> Self
fn from(err: ExportLensError) -> Self
Source§impl From<GetAnswerError> for Error
impl From<GetAnswerError> for Error
Source§fn from(err: GetAnswerError) -> Self
fn from(err: GetAnswerError) -> Self
Source§impl From<GetConsolidatedReportError> for Error
impl From<GetConsolidatedReportError> for Error
Source§fn from(err: GetConsolidatedReportError) -> Self
fn from(err: GetConsolidatedReportError) -> Self
Source§impl From<GetGlobalSettingsError> for Error
impl From<GetGlobalSettingsError> for Error
Source§fn from(err: GetGlobalSettingsError) -> Self
fn from(err: GetGlobalSettingsError) -> Self
Source§impl From<GetLensError> for Error
impl From<GetLensError> for Error
Source§fn from(err: GetLensError) -> Self
fn from(err: GetLensError) -> Self
Source§impl From<GetLensReviewError> for Error
impl From<GetLensReviewError> for Error
Source§fn from(err: GetLensReviewError) -> Self
fn from(err: GetLensReviewError) -> Self
Source§impl From<GetLensReviewReportError> for Error
impl From<GetLensReviewReportError> for Error
Source§fn from(err: GetLensReviewReportError) -> Self
fn from(err: GetLensReviewReportError) -> Self
Source§impl From<GetLensVersionDifferenceError> for Error
impl From<GetLensVersionDifferenceError> for Error
Source§fn from(err: GetLensVersionDifferenceError) -> Self
fn from(err: GetLensVersionDifferenceError) -> Self
Source§impl From<GetMilestoneError> for Error
impl From<GetMilestoneError> for Error
Source§fn from(err: GetMilestoneError) -> Self
fn from(err: GetMilestoneError) -> Self
Source§impl From<GetProfileError> for Error
impl From<GetProfileError> for Error
Source§fn from(err: GetProfileError) -> Self
fn from(err: GetProfileError) -> Self
Source§impl From<GetProfileTemplateError> for Error
impl From<GetProfileTemplateError> for Error
Source§fn from(err: GetProfileTemplateError) -> Self
fn from(err: GetProfileTemplateError) -> Self
Source§impl From<GetReviewTemplateAnswerError> for Error
impl From<GetReviewTemplateAnswerError> for Error
Source§fn from(err: GetReviewTemplateAnswerError) -> Self
fn from(err: GetReviewTemplateAnswerError) -> Self
Source§impl From<GetReviewTemplateError> for Error
impl From<GetReviewTemplateError> for Error
Source§fn from(err: GetReviewTemplateError) -> Self
fn from(err: GetReviewTemplateError) -> Self
Source§impl From<GetReviewTemplateLensReviewError> for Error
impl From<GetReviewTemplateLensReviewError> for Error
Source§fn from(err: GetReviewTemplateLensReviewError) -> Self
fn from(err: GetReviewTemplateLensReviewError) -> Self
Source§impl From<GetWorkloadError> for Error
impl From<GetWorkloadError> for Error
Source§fn from(err: GetWorkloadError) -> Self
fn from(err: GetWorkloadError) -> Self
Source§impl From<ImportLensError> for Error
impl From<ImportLensError> for Error
Source§fn from(err: ImportLensError) -> Self
fn from(err: ImportLensError) -> Self
Source§impl From<ListAnswersError> for Error
impl From<ListAnswersError> for Error
Source§fn from(err: ListAnswersError) -> Self
fn from(err: ListAnswersError) -> Self
Source§impl From<ListCheckDetailsError> for Error
impl From<ListCheckDetailsError> for Error
Source§fn from(err: ListCheckDetailsError) -> Self
fn from(err: ListCheckDetailsError) -> Self
Source§impl From<ListCheckSummariesError> for Error
impl From<ListCheckSummariesError> for Error
Source§fn from(err: ListCheckSummariesError) -> Self
fn from(err: ListCheckSummariesError) -> Self
Source§impl From<ListLensReviewImprovementsError> for Error
impl From<ListLensReviewImprovementsError> for Error
Source§fn from(err: ListLensReviewImprovementsError) -> Self
fn from(err: ListLensReviewImprovementsError) -> Self
Source§impl From<ListLensReviewsError> for Error
impl From<ListLensReviewsError> for Error
Source§fn from(err: ListLensReviewsError) -> Self
fn from(err: ListLensReviewsError) -> Self
Source§fn from(err: ListLensSharesError) -> Self
fn from(err: ListLensSharesError) -> Self
Source§impl From<ListLensesError> for Error
impl From<ListLensesError> for Error
Source§fn from(err: ListLensesError) -> Self
fn from(err: ListLensesError) -> Self
Source§impl From<ListMilestonesError> for Error
impl From<ListMilestonesError> for Error
Source§fn from(err: ListMilestonesError) -> Self
fn from(err: ListMilestonesError) -> Self
Source§impl From<ListNotificationsError> for Error
impl From<ListNotificationsError> for Error
Source§fn from(err: ListNotificationsError) -> Self
fn from(err: ListNotificationsError) -> Self
Source§impl From<ListProfileNotificationsError> for Error
impl From<ListProfileNotificationsError> for Error
Source§fn from(err: ListProfileNotificationsError) -> Self
fn from(err: ListProfileNotificationsError) -> Self
Source§fn from(err: ListProfileSharesError) -> Self
fn from(err: ListProfileSharesError) -> Self
Source§impl From<ListProfilesError> for Error
impl From<ListProfilesError> for Error
Source§fn from(err: ListProfilesError) -> Self
fn from(err: ListProfilesError) -> Self
Source§impl From<ListReviewTemplateAnswersError> for Error
impl From<ListReviewTemplateAnswersError> for Error
Source§fn from(err: ListReviewTemplateAnswersError) -> Self
fn from(err: ListReviewTemplateAnswersError) -> Self
Source§impl From<ListReviewTemplatesError> for Error
impl From<ListReviewTemplatesError> for Error
Source§fn from(err: ListReviewTemplatesError) -> Self
fn from(err: ListReviewTemplatesError) -> Self
Source§fn from(err: ListShareInvitationsError) -> Self
fn from(err: ListShareInvitationsError) -> Self
Source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
Source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
Source§fn from(err: ListTemplateSharesError) -> Self
fn from(err: ListTemplateSharesError) -> Self
Source§fn from(err: ListWorkloadSharesError) -> Self
fn from(err: ListWorkloadSharesError) -> Self
Source§impl From<ListWorkloadsError> for Error
impl From<ListWorkloadsError> for Error
Source§fn from(err: ListWorkloadsError) -> Self
fn from(err: ListWorkloadsError) -> Self
Source§impl<R> From<SdkError<AssociateLensesError, R>> for Error
impl<R> From<SdkError<AssociateLensesError, R>> for Error
Source§fn from(err: SdkError<AssociateLensesError, R>) -> Self
fn from(err: SdkError<AssociateLensesError, R>) -> Self
Source§impl<R> From<SdkError<AssociateProfilesError, R>> for Error
impl<R> From<SdkError<AssociateProfilesError, R>> for Error
Source§fn from(err: SdkError<AssociateProfilesError, R>) -> Self
fn from(err: SdkError<AssociateProfilesError, R>) -> Self
Source§fn from(err: SdkError<CreateLensShareError, R>) -> Self
fn from(err: SdkError<CreateLensShareError, R>) -> Self
Source§impl<R> From<SdkError<CreateLensVersionError, R>> for Error
impl<R> From<SdkError<CreateLensVersionError, R>> for Error
Source§fn from(err: SdkError<CreateLensVersionError, R>) -> Self
fn from(err: SdkError<CreateLensVersionError, R>) -> Self
Source§impl<R> From<SdkError<CreateMilestoneError, R>> for Error
impl<R> From<SdkError<CreateMilestoneError, R>> for Error
Source§fn from(err: SdkError<CreateMilestoneError, R>) -> Self
fn from(err: SdkError<CreateMilestoneError, R>) -> Self
Source§impl<R> From<SdkError<CreateProfileError, R>> for Error
impl<R> From<SdkError<CreateProfileError, R>> for Error
Source§fn from(err: SdkError<CreateProfileError, R>) -> Self
fn from(err: SdkError<CreateProfileError, R>) -> Self
Source§fn from(err: SdkError<CreateProfileShareError, R>) -> Self
fn from(err: SdkError<CreateProfileShareError, R>) -> Self
Source§impl<R> From<SdkError<CreateReviewTemplateError, R>> for Error
impl<R> From<SdkError<CreateReviewTemplateError, R>> for Error
Source§fn from(err: SdkError<CreateReviewTemplateError, R>) -> Self
fn from(err: SdkError<CreateReviewTemplateError, R>) -> Self
Source§fn from(err: SdkError<CreateTemplateShareError, R>) -> Self
fn from(err: SdkError<CreateTemplateShareError, R>) -> Self
Source§impl<R> From<SdkError<CreateWorkloadError, R>> for Error
impl<R> From<SdkError<CreateWorkloadError, R>> for Error
Source§fn from(err: SdkError<CreateWorkloadError, R>) -> Self
fn from(err: SdkError<CreateWorkloadError, R>) -> Self
Source§fn from(err: SdkError<CreateWorkloadShareError, R>) -> Self
fn from(err: SdkError<CreateWorkloadShareError, R>) -> Self
Source§impl<R> From<SdkError<DeleteLensError, R>> for Error
impl<R> From<SdkError<DeleteLensError, R>> for Error
Source§fn from(err: SdkError<DeleteLensError, R>) -> Self
fn from(err: SdkError<DeleteLensError, R>) -> Self
Source§fn from(err: SdkError<DeleteLensShareError, R>) -> Self
fn from(err: SdkError<DeleteLensShareError, R>) -> Self
Source§impl<R> From<SdkError<DeleteProfileError, R>> for Error
impl<R> From<SdkError<DeleteProfileError, R>> for Error
Source§fn from(err: SdkError<DeleteProfileError, R>) -> Self
fn from(err: SdkError<DeleteProfileError, R>) -> Self
Source§fn from(err: SdkError<DeleteProfileShareError, R>) -> Self
fn from(err: SdkError<DeleteProfileShareError, R>) -> Self
Source§impl<R> From<SdkError<DeleteReviewTemplateError, R>> for Error
impl<R> From<SdkError<DeleteReviewTemplateError, R>> for Error
Source§fn from(err: SdkError<DeleteReviewTemplateError, R>) -> Self
fn from(err: SdkError<DeleteReviewTemplateError, R>) -> Self
Source§fn from(err: SdkError<DeleteTemplateShareError, R>) -> Self
fn from(err: SdkError<DeleteTemplateShareError, R>) -> Self
Source§impl<R> From<SdkError<DeleteWorkloadError, R>> for Error
impl<R> From<SdkError<DeleteWorkloadError, R>> for Error
Source§fn from(err: SdkError<DeleteWorkloadError, R>) -> Self
fn from(err: SdkError<DeleteWorkloadError, R>) -> Self
Source§fn from(err: SdkError<DeleteWorkloadShareError, R>) -> Self
fn from(err: SdkError<DeleteWorkloadShareError, R>) -> Self
Source§impl<R> From<SdkError<DisassociateLensesError, R>> for Error
impl<R> From<SdkError<DisassociateLensesError, R>> for Error
Source§fn from(err: SdkError<DisassociateLensesError, R>) -> Self
fn from(err: SdkError<DisassociateLensesError, R>) -> Self
Source§impl<R> From<SdkError<DisassociateProfilesError, R>> for Error
impl<R> From<SdkError<DisassociateProfilesError, R>> for Error
Source§fn from(err: SdkError<DisassociateProfilesError, R>) -> Self
fn from(err: SdkError<DisassociateProfilesError, R>) -> Self
Source§impl<R> From<SdkError<ExportLensError, R>> for Error
impl<R> From<SdkError<ExportLensError, R>> for Error
Source§fn from(err: SdkError<ExportLensError, R>) -> Self
fn from(err: SdkError<ExportLensError, R>) -> Self
Source§impl<R> From<SdkError<GetAnswerError, R>> for Error
impl<R> From<SdkError<GetAnswerError, R>> for Error
Source§fn from(err: SdkError<GetAnswerError, R>) -> Self
fn from(err: SdkError<GetAnswerError, R>) -> Self
Source§impl<R> From<SdkError<GetConsolidatedReportError, R>> for Error
impl<R> From<SdkError<GetConsolidatedReportError, R>> for Error
Source§fn from(err: SdkError<GetConsolidatedReportError, R>) -> Self
fn from(err: SdkError<GetConsolidatedReportError, R>) -> Self
Source§impl<R> From<SdkError<GetGlobalSettingsError, R>> for Error
impl<R> From<SdkError<GetGlobalSettingsError, R>> for Error
Source§fn from(err: SdkError<GetGlobalSettingsError, R>) -> Self
fn from(err: SdkError<GetGlobalSettingsError, R>) -> Self
Source§impl<R> From<SdkError<GetLensError, R>> for Error
impl<R> From<SdkError<GetLensError, R>> for Error
Source§fn from(err: SdkError<GetLensError, R>) -> Self
fn from(err: SdkError<GetLensError, R>) -> Self
Source§impl<R> From<SdkError<GetLensReviewError, R>> for Error
impl<R> From<SdkError<GetLensReviewError, R>> for Error
Source§fn from(err: SdkError<GetLensReviewError, R>) -> Self
fn from(err: SdkError<GetLensReviewError, R>) -> Self
Source§impl<R> From<SdkError<GetLensReviewReportError, R>> for Error
impl<R> From<SdkError<GetLensReviewReportError, R>> for Error
Source§fn from(err: SdkError<GetLensReviewReportError, R>) -> Self
fn from(err: SdkError<GetLensReviewReportError, R>) -> Self
Source§impl<R> From<SdkError<GetLensVersionDifferenceError, R>> for Error
impl<R> From<SdkError<GetLensVersionDifferenceError, R>> for Error
Source§fn from(err: SdkError<GetLensVersionDifferenceError, R>) -> Self
fn from(err: SdkError<GetLensVersionDifferenceError, R>) -> Self
Source§impl<R> From<SdkError<GetMilestoneError, R>> for Error
impl<R> From<SdkError<GetMilestoneError, R>> for Error
Source§fn from(err: SdkError<GetMilestoneError, R>) -> Self
fn from(err: SdkError<GetMilestoneError, R>) -> Self
Source§impl<R> From<SdkError<GetProfileError, R>> for Error
impl<R> From<SdkError<GetProfileError, R>> for Error
Source§fn from(err: SdkError<GetProfileError, R>) -> Self
fn from(err: SdkError<GetProfileError, R>) -> Self
Source§impl<R> From<SdkError<GetProfileTemplateError, R>> for Error
impl<R> From<SdkError<GetProfileTemplateError, R>> for Error
Source§fn from(err: SdkError<GetProfileTemplateError, R>) -> Self
fn from(err: SdkError<GetProfileTemplateError, R>) -> Self
Source§impl<R> From<SdkError<GetReviewTemplateAnswerError, R>> for Error
impl<R> From<SdkError<GetReviewTemplateAnswerError, R>> for Error
Source§fn from(err: SdkError<GetReviewTemplateAnswerError, R>) -> Self
fn from(err: SdkError<GetReviewTemplateAnswerError, R>) -> Self
Source§impl<R> From<SdkError<GetReviewTemplateError, R>> for Error
impl<R> From<SdkError<GetReviewTemplateError, R>> for Error
Source§fn from(err: SdkError<GetReviewTemplateError, R>) -> Self
fn from(err: SdkError<GetReviewTemplateError, R>) -> Self
Source§impl<R> From<SdkError<GetReviewTemplateLensReviewError, R>> for Error
impl<R> From<SdkError<GetReviewTemplateLensReviewError, R>> for Error
Source§fn from(err: SdkError<GetReviewTemplateLensReviewError, R>) -> Self
fn from(err: SdkError<GetReviewTemplateLensReviewError, R>) -> Self
Source§impl<R> From<SdkError<GetWorkloadError, R>> for Error
impl<R> From<SdkError<GetWorkloadError, R>> for Error
Source§fn from(err: SdkError<GetWorkloadError, R>) -> Self
fn from(err: SdkError<GetWorkloadError, R>) -> Self
Source§impl<R> From<SdkError<ImportLensError, R>> for Error
impl<R> From<SdkError<ImportLensError, R>> for Error
Source§fn from(err: SdkError<ImportLensError, R>) -> Self
fn from(err: SdkError<ImportLensError, R>) -> Self
Source§impl<R> From<SdkError<ListAnswersError, R>> for Error
impl<R> From<SdkError<ListAnswersError, R>> for Error
Source§fn from(err: SdkError<ListAnswersError, R>) -> Self
fn from(err: SdkError<ListAnswersError, R>) -> Self
Source§impl<R> From<SdkError<ListCheckDetailsError, R>> for Error
impl<R> From<SdkError<ListCheckDetailsError, R>> for Error
Source§fn from(err: SdkError<ListCheckDetailsError, R>) -> Self
fn from(err: SdkError<ListCheckDetailsError, R>) -> Self
Source§impl<R> From<SdkError<ListCheckSummariesError, R>> for Error
impl<R> From<SdkError<ListCheckSummariesError, R>> for Error
Source§fn from(err: SdkError<ListCheckSummariesError, R>) -> Self
fn from(err: SdkError<ListCheckSummariesError, R>) -> Self
Source§impl<R> From<SdkError<ListLensReviewImprovementsError, R>> for Error
impl<R> From<SdkError<ListLensReviewImprovementsError, R>> for Error
Source§fn from(err: SdkError<ListLensReviewImprovementsError, R>) -> Self
fn from(err: SdkError<ListLensReviewImprovementsError, R>) -> Self
Source§impl<R> From<SdkError<ListLensReviewsError, R>> for Error
impl<R> From<SdkError<ListLensReviewsError, R>> for Error
Source§fn from(err: SdkError<ListLensReviewsError, R>) -> Self
fn from(err: SdkError<ListLensReviewsError, R>) -> Self
Source§fn from(err: SdkError<ListLensSharesError, R>) -> Self
fn from(err: SdkError<ListLensSharesError, R>) -> Self
Source§impl<R> From<SdkError<ListLensesError, R>> for Error
impl<R> From<SdkError<ListLensesError, R>> for Error
Source§fn from(err: SdkError<ListLensesError, R>) -> Self
fn from(err: SdkError<ListLensesError, R>) -> Self
Source§impl<R> From<SdkError<ListMilestonesError, R>> for Error
impl<R> From<SdkError<ListMilestonesError, R>> for Error
Source§fn from(err: SdkError<ListMilestonesError, R>) -> Self
fn from(err: SdkError<ListMilestonesError, R>) -> Self
Source§impl<R> From<SdkError<ListNotificationsError, R>> for Error
impl<R> From<SdkError<ListNotificationsError, R>> for Error
Source§fn from(err: SdkError<ListNotificationsError, R>) -> Self
fn from(err: SdkError<ListNotificationsError, R>) -> Self
Source§impl<R> From<SdkError<ListProfileNotificationsError, R>> for Error
impl<R> From<SdkError<ListProfileNotificationsError, R>> for Error
Source§fn from(err: SdkError<ListProfileNotificationsError, R>) -> Self
fn from(err: SdkError<ListProfileNotificationsError, R>) -> Self
Source§fn from(err: SdkError<ListProfileSharesError, R>) -> Self
fn from(err: SdkError<ListProfileSharesError, R>) -> Self
Source§impl<R> From<SdkError<ListProfilesError, R>> for Error
impl<R> From<SdkError<ListProfilesError, R>> for Error
Source§fn from(err: SdkError<ListProfilesError, R>) -> Self
fn from(err: SdkError<ListProfilesError, R>) -> Self
Source§impl<R> From<SdkError<ListReviewTemplateAnswersError, R>> for Error
impl<R> From<SdkError<ListReviewTemplateAnswersError, R>> for Error
Source§fn from(err: SdkError<ListReviewTemplateAnswersError, R>) -> Self
fn from(err: SdkError<ListReviewTemplateAnswersError, R>) -> Self
Source§impl<R> From<SdkError<ListReviewTemplatesError, R>> for Error
impl<R> From<SdkError<ListReviewTemplatesError, R>> for Error
Source§fn from(err: SdkError<ListReviewTemplatesError, R>) -> Self
fn from(err: SdkError<ListReviewTemplatesError, R>) -> Self
Source§fn from(err: SdkError<ListShareInvitationsError, R>) -> Self
fn from(err: SdkError<ListShareInvitationsError, R>) -> Self
Source§impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
impl<R> From<SdkError<ListTagsForResourceError, R>> for Error
Source§fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
fn from(err: SdkError<ListTagsForResourceError, R>) -> Self
Source§fn from(err: SdkError<ListTemplateSharesError, R>) -> Self
fn from(err: SdkError<ListTemplateSharesError, R>) -> Self
Source§fn from(err: SdkError<ListWorkloadSharesError, R>) -> Self
fn from(err: SdkError<ListWorkloadSharesError, R>) -> Self
Source§impl<R> From<SdkError<ListWorkloadsError, R>> for Error
impl<R> From<SdkError<ListWorkloadsError, R>> for Error
Source§fn from(err: SdkError<ListWorkloadsError, R>) -> Self
fn from(err: SdkError<ListWorkloadsError, R>) -> Self
Source§impl<R> From<SdkError<TagResourceError, R>> for Error
impl<R> From<SdkError<TagResourceError, R>> for Error
Source§fn from(err: SdkError<TagResourceError, R>) -> Self
fn from(err: SdkError<TagResourceError, R>) -> Self
Source§impl<R> From<SdkError<UntagResourceError, R>> for Error
impl<R> From<SdkError<UntagResourceError, R>> for Error
Source§fn from(err: SdkError<UntagResourceError, R>) -> Self
fn from(err: SdkError<UntagResourceError, R>) -> Self
Source§impl<R> From<SdkError<UpdateAnswerError, R>> for Error
impl<R> From<SdkError<UpdateAnswerError, R>> for Error
Source§fn from(err: SdkError<UpdateAnswerError, R>) -> Self
fn from(err: SdkError<UpdateAnswerError, R>) -> Self
Source§impl<R> From<SdkError<UpdateGlobalSettingsError, R>> for Error
impl<R> From<SdkError<UpdateGlobalSettingsError, R>> for Error
Source§fn from(err: SdkError<UpdateGlobalSettingsError, R>) -> Self
fn from(err: SdkError<UpdateGlobalSettingsError, R>) -> Self
Source§impl<R> From<SdkError<UpdateIntegrationError, R>> for Error
impl<R> From<SdkError<UpdateIntegrationError, R>> for Error
Source§fn from(err: SdkError<UpdateIntegrationError, R>) -> Self
fn from(err: SdkError<UpdateIntegrationError, R>) -> Self
Source§impl<R> From<SdkError<UpdateLensReviewError, R>> for Error
impl<R> From<SdkError<UpdateLensReviewError, R>> for Error
Source§fn from(err: SdkError<UpdateLensReviewError, R>) -> Self
fn from(err: SdkError<UpdateLensReviewError, R>) -> Self
Source§impl<R> From<SdkError<UpdateProfileError, R>> for Error
impl<R> From<SdkError<UpdateProfileError, R>> for Error
Source§fn from(err: SdkError<UpdateProfileError, R>) -> Self
fn from(err: SdkError<UpdateProfileError, R>) -> Self
Source§impl<R> From<SdkError<UpdateReviewTemplateAnswerError, R>> for Error
impl<R> From<SdkError<UpdateReviewTemplateAnswerError, R>> for Error
Source§fn from(err: SdkError<UpdateReviewTemplateAnswerError, R>) -> Self
fn from(err: SdkError<UpdateReviewTemplateAnswerError, R>) -> Self
Source§impl<R> From<SdkError<UpdateReviewTemplateError, R>> for Error
impl<R> From<SdkError<UpdateReviewTemplateError, R>> for Error
Source§fn from(err: SdkError<UpdateReviewTemplateError, R>) -> Self
fn from(err: SdkError<UpdateReviewTemplateError, R>) -> Self
Source§impl<R> From<SdkError<UpdateReviewTemplateLensReviewError, R>> for Error
impl<R> From<SdkError<UpdateReviewTemplateLensReviewError, R>> for Error
Source§fn from(err: SdkError<UpdateReviewTemplateLensReviewError, R>) -> Self
fn from(err: SdkError<UpdateReviewTemplateLensReviewError, R>) -> Self
Source§fn from(err: SdkError<UpdateShareInvitationError, R>) -> Self
fn from(err: SdkError<UpdateShareInvitationError, R>) -> Self
Source§impl<R> From<SdkError<UpdateWorkloadError, R>> for Error
impl<R> From<SdkError<UpdateWorkloadError, R>> for Error
Source§fn from(err: SdkError<UpdateWorkloadError, R>) -> Self
fn from(err: SdkError<UpdateWorkloadError, R>) -> Self
Source§fn from(err: SdkError<UpdateWorkloadShareError, R>) -> Self
fn from(err: SdkError<UpdateWorkloadShareError, R>) -> Self
Source§impl<R> From<SdkError<UpgradeLensReviewError, R>> for Error
impl<R> From<SdkError<UpgradeLensReviewError, R>> for Error
Source§fn from(err: SdkError<UpgradeLensReviewError, R>) -> Self
fn from(err: SdkError<UpgradeLensReviewError, R>) -> Self
Source§impl<R> From<SdkError<UpgradeProfileVersionError, R>> for Error
impl<R> From<SdkError<UpgradeProfileVersionError, R>> for Error
Source§fn from(err: SdkError<UpgradeProfileVersionError, R>) -> Self
fn from(err: SdkError<UpgradeProfileVersionError, R>) -> Self
Source§impl<R> From<SdkError<UpgradeReviewTemplateLensReviewError, R>> for Error
impl<R> From<SdkError<UpgradeReviewTemplateLensReviewError, R>> for Error
Source§fn from(err: SdkError<UpgradeReviewTemplateLensReviewError, R>) -> Self
fn from(err: SdkError<UpgradeReviewTemplateLensReviewError, R>) -> Self
Source§impl From<TagResourceError> for Error
impl From<TagResourceError> for Error
Source§fn from(err: TagResourceError) -> Self
fn from(err: TagResourceError) -> Self
Source§impl From<UntagResourceError> for Error
impl From<UntagResourceError> for Error
Source§fn from(err: UntagResourceError) -> Self
fn from(err: UntagResourceError) -> Self
Source§impl From<UpdateAnswerError> for Error
impl From<UpdateAnswerError> for Error
Source§fn from(err: UpdateAnswerError) -> Self
fn from(err: UpdateAnswerError) -> Self
Source§impl From<UpdateGlobalSettingsError> for Error
impl From<UpdateGlobalSettingsError> for Error
Source§fn from(err: UpdateGlobalSettingsError) -> Self
fn from(err: UpdateGlobalSettingsError) -> Self
Source§impl From<UpdateIntegrationError> for Error
impl From<UpdateIntegrationError> for Error
Source§fn from(err: UpdateIntegrationError) -> Self
fn from(err: UpdateIntegrationError) -> Self
Source§impl From<UpdateLensReviewError> for Error
impl From<UpdateLensReviewError> for Error
Source§fn from(err: UpdateLensReviewError) -> Self
fn from(err: UpdateLensReviewError) -> Self
Source§impl From<UpdateProfileError> for Error
impl From<UpdateProfileError> for Error
Source§fn from(err: UpdateProfileError) -> Self
fn from(err: UpdateProfileError) -> Self
Source§impl From<UpdateReviewTemplateAnswerError> for Error
impl From<UpdateReviewTemplateAnswerError> for Error
Source§fn from(err: UpdateReviewTemplateAnswerError) -> Self
fn from(err: UpdateReviewTemplateAnswerError) -> Self
Source§impl From<UpdateReviewTemplateError> for Error
impl From<UpdateReviewTemplateError> for Error
Source§fn from(err: UpdateReviewTemplateError) -> Self
fn from(err: UpdateReviewTemplateError) -> Self
Source§impl From<UpdateReviewTemplateLensReviewError> for Error
impl From<UpdateReviewTemplateLensReviewError> for Error
Source§fn from(err: UpdateReviewTemplateLensReviewError) -> Self
fn from(err: UpdateReviewTemplateLensReviewError) -> Self
Source§fn from(err: UpdateShareInvitationError) -> Self
fn from(err: UpdateShareInvitationError) -> Self
Source§impl From<UpdateWorkloadError> for Error
impl From<UpdateWorkloadError> for Error
Source§fn from(err: UpdateWorkloadError) -> Self
fn from(err: UpdateWorkloadError) -> Self
Source§fn from(err: UpdateWorkloadShareError) -> Self
fn from(err: UpdateWorkloadShareError) -> Self
Source§impl From<UpgradeLensReviewError> for Error
impl From<UpgradeLensReviewError> for Error
Source§fn from(err: UpgradeLensReviewError) -> Self
fn from(err: UpgradeLensReviewError) -> Self
Source§impl From<UpgradeProfileVersionError> for Error
impl From<UpgradeProfileVersionError> for Error
Source§fn from(err: UpgradeProfileVersionError) -> Self
fn from(err: UpgradeProfileVersionError) -> Self
Source§impl From<UpgradeReviewTemplateLensReviewError> for Error
impl From<UpgradeReviewTemplateLensReviewError> for Error
Source§fn from(err: UpgradeReviewTemplateLensReviewError) -> Self
fn from(err: UpgradeReviewTemplateLensReviewError) -> Self
Source§impl ProvideErrorMetadata for Error
impl ProvideErrorMetadata for Error
Source§fn meta(&self) -> &ErrorMetadata
fn meta(&self) -> &ErrorMetadata
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> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> 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>
Returns self
with the
fg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.bright_black());
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>
Returns self
with the
fg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.bright_green());
Source§fn bright_yellow(&self) -> Painted<&T>
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>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
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>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
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>
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>
Returns self
with the
bg()
set to
Color::BrightBlack
.
§Example
println!("{}", value.on_bright_black());
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>
Returns self
with the
bg()
set to
Color::BrightGreen
.
§Example
println!("{}", value.on_bright_green());
Source§fn on_bright_yellow(&self) -> Painted<&T>
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>
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>
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>
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>
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>
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 underline(&self) -> Painted<&T>
fn underline(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::Underline
.
§Example
println!("{}", value.underline());
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Returns self
with the
attr()
set to
Attribute::RapidBlink
.
§Example
println!("{}", value.rapid_blink());
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);