#[non_exhaustive]pub enum Error {
Show 26 variants
ConcurrentModificationException(ConcurrentModificationException),
ConflictingOperationException(ConflictingOperationException),
CustomMetadataLimitExceededException(CustomMetadataLimitExceededException),
DeactivatingLastSystemUserException(DeactivatingLastSystemUserException),
DocumentLockedForCommentsException(DocumentLockedForCommentsException),
DraftUploadOutOfSyncException(DraftUploadOutOfSyncException),
EntityAlreadyExistsException(EntityAlreadyExistsException),
EntityNotExistsException(EntityNotExistsException),
FailedDependencyException(FailedDependencyException),
IllegalUserStateException(IllegalUserStateException),
InvalidArgumentException(InvalidArgumentException),
InvalidCommentOperationException(InvalidCommentOperationException),
InvalidOperationException(InvalidOperationException),
InvalidPasswordException(InvalidPasswordException),
LimitExceededException(LimitExceededException),
ProhibitedStateException(ProhibitedStateException),
RequestedEntityTooLargeException(RequestedEntityTooLargeException),
ResourceAlreadyCheckedOutException(ResourceAlreadyCheckedOutException),
ServiceUnavailableException(ServiceUnavailableException),
StorageLimitExceededException(StorageLimitExceededException),
StorageLimitWillExceedException(StorageLimitWillExceedException),
TooManyLabelsException(TooManyLabelsException),
TooManySubscriptionsException(TooManySubscriptionsException),
UnauthorizedOperationException(UnauthorizedOperationException),
UnauthorizedResourceAccessException(UnauthorizedResourceAccessException),
Unhandled(Unhandled),
}
Expand description
All possible error types for this service.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ConcurrentModificationException(ConcurrentModificationException)
The resource hierarchy is changing.
ConflictingOperationException(ConflictingOperationException)
Another operation is in progress on the resource that conflicts with the current operation.
CustomMetadataLimitExceededException(CustomMetadataLimitExceededException)
The limit has been reached on the number of custom properties for the specified resource.
DeactivatingLastSystemUserException(DeactivatingLastSystemUserException)
The last user in the organization is being deactivated.
DocumentLockedForCommentsException(DocumentLockedForCommentsException)
This exception is thrown when the document is locked for comments and user tries to create or delete a comment on that document.
DraftUploadOutOfSyncException(DraftUploadOutOfSyncException)
This exception is thrown when a valid checkout ID is not presented on document version upload calls for a document that has been checked out from Web client.
EntityAlreadyExistsException(EntityAlreadyExistsException)
The resource already exists.
EntityNotExistsException(EntityNotExistsException)
The resource does not exist.
FailedDependencyException(FailedDependencyException)
The Directory Service cannot reach an on-premises instance. Or a dependency under the control of the organization is failing, such as a connected Active Directory.
IllegalUserStateException(IllegalUserStateException)
The user is undergoing transfer of ownership.
InvalidArgumentException(InvalidArgumentException)
The pagination marker or limit fields are not valid.
InvalidCommentOperationException(InvalidCommentOperationException)
The requested operation is not allowed on the specified comment object.
InvalidOperationException(InvalidOperationException)
The operation is invalid.
InvalidPasswordException(InvalidPasswordException)
The password is invalid.
LimitExceededException(LimitExceededException)
The maximum of 100,000 files and folders under the parent folder has been exceeded.
ProhibitedStateException(ProhibitedStateException)
The specified document version is not in the INITIALIZED state.
RequestedEntityTooLargeException(RequestedEntityTooLargeException)
The response is too large to return. The request must include a filter to reduce the size of the response.
ResourceAlreadyCheckedOutException(ResourceAlreadyCheckedOutException)
The resource is already checked out.
One or more of the dependencies is unavailable.
StorageLimitExceededException(StorageLimitExceededException)
The storage limit has been exceeded.
StorageLimitWillExceedException(StorageLimitWillExceedException)
The storage limit will be exceeded.
TooManyLabelsException(TooManyLabelsException)
The limit has been reached on the number of labels for the specified resource.
TooManySubscriptionsException(TooManySubscriptionsException)
You've reached the limit on the number of subscriptions for the WorkDocs instance.
The operation is not permitted.
The caller does not have access to perform the action on the resource.
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<AbortDocumentVersionUploadError> for Error
impl From<AbortDocumentVersionUploadError> for Error
Source§fn from(err: AbortDocumentVersionUploadError) -> Self
fn from(err: AbortDocumentVersionUploadError) -> Self
Source§impl From<ActivateUserError> for Error
impl From<ActivateUserError> for Error
Source§fn from(err: ActivateUserError) -> Self
fn from(err: ActivateUserError) -> Self
Source§impl From<AddResourcePermissionsError> for Error
impl From<AddResourcePermissionsError> for Error
Source§fn from(err: AddResourcePermissionsError) -> Self
fn from(err: AddResourcePermissionsError) -> Self
Source§impl From<BuildError> for Error
impl From<BuildError> for Error
Source§fn from(value: BuildError) -> Self
fn from(value: BuildError) -> Self
Source§impl From<CreateCommentError> for Error
impl From<CreateCommentError> for Error
Source§fn from(err: CreateCommentError) -> Self
fn from(err: CreateCommentError) -> Self
Source§impl From<CreateCustomMetadataError> for Error
impl From<CreateCustomMetadataError> for Error
Source§fn from(err: CreateCustomMetadataError) -> Self
fn from(err: CreateCustomMetadataError) -> Self
Source§impl From<CreateFolderError> for Error
impl From<CreateFolderError> for Error
Source§fn from(err: CreateFolderError) -> Self
fn from(err: CreateFolderError) -> Self
Source§impl From<CreateLabelsError> for Error
impl From<CreateLabelsError> for Error
Source§fn from(err: CreateLabelsError) -> Self
fn from(err: CreateLabelsError) -> Self
Source§impl From<CreateNotificationSubscriptionError> for Error
impl From<CreateNotificationSubscriptionError> for Error
Source§fn from(err: CreateNotificationSubscriptionError) -> Self
fn from(err: CreateNotificationSubscriptionError) -> Self
Source§impl From<CreateUserError> for Error
impl From<CreateUserError> for Error
Source§fn from(err: CreateUserError) -> Self
fn from(err: CreateUserError) -> Self
Source§impl From<DeactivateUserError> for Error
impl From<DeactivateUserError> for Error
Source§fn from(err: DeactivateUserError) -> Self
fn from(err: DeactivateUserError) -> Self
Source§impl From<DeleteCommentError> for Error
impl From<DeleteCommentError> for Error
Source§fn from(err: DeleteCommentError) -> Self
fn from(err: DeleteCommentError) -> Self
Source§impl From<DeleteCustomMetadataError> for Error
impl From<DeleteCustomMetadataError> for Error
Source§fn from(err: DeleteCustomMetadataError) -> Self
fn from(err: DeleteCustomMetadataError) -> Self
Source§impl From<DeleteDocumentError> for Error
impl From<DeleteDocumentError> for Error
Source§fn from(err: DeleteDocumentError) -> Self
fn from(err: DeleteDocumentError) -> Self
Source§impl From<DeleteDocumentVersionError> for Error
impl From<DeleteDocumentVersionError> for Error
Source§fn from(err: DeleteDocumentVersionError) -> Self
fn from(err: DeleteDocumentVersionError) -> Self
Source§impl From<DeleteFolderContentsError> for Error
impl From<DeleteFolderContentsError> for Error
Source§fn from(err: DeleteFolderContentsError) -> Self
fn from(err: DeleteFolderContentsError) -> Self
Source§impl From<DeleteFolderError> for Error
impl From<DeleteFolderError> for Error
Source§fn from(err: DeleteFolderError) -> Self
fn from(err: DeleteFolderError) -> Self
Source§impl From<DeleteLabelsError> for Error
impl From<DeleteLabelsError> for Error
Source§fn from(err: DeleteLabelsError) -> Self
fn from(err: DeleteLabelsError) -> Self
Source§impl From<DeleteNotificationSubscriptionError> for Error
impl From<DeleteNotificationSubscriptionError> for Error
Source§fn from(err: DeleteNotificationSubscriptionError) -> Self
fn from(err: DeleteNotificationSubscriptionError) -> Self
Source§impl From<DeleteUserError> for Error
impl From<DeleteUserError> for Error
Source§fn from(err: DeleteUserError) -> Self
fn from(err: DeleteUserError) -> Self
Source§impl From<DescribeActivitiesError> for Error
impl From<DescribeActivitiesError> for Error
Source§fn from(err: DescribeActivitiesError) -> Self
fn from(err: DescribeActivitiesError) -> Self
Source§impl From<DescribeCommentsError> for Error
impl From<DescribeCommentsError> for Error
Source§fn from(err: DescribeCommentsError) -> Self
fn from(err: DescribeCommentsError) -> Self
Source§impl From<DescribeDocumentVersionsError> for Error
impl From<DescribeDocumentVersionsError> for Error
Source§fn from(err: DescribeDocumentVersionsError) -> Self
fn from(err: DescribeDocumentVersionsError) -> Self
Source§impl From<DescribeFolderContentsError> for Error
impl From<DescribeFolderContentsError> for Error
Source§fn from(err: DescribeFolderContentsError) -> Self
fn from(err: DescribeFolderContentsError) -> Self
Source§impl From<DescribeGroupsError> for Error
impl From<DescribeGroupsError> for Error
Source§fn from(err: DescribeGroupsError) -> Self
fn from(err: DescribeGroupsError) -> Self
Source§impl From<DescribeNotificationSubscriptionsError> for Error
impl From<DescribeNotificationSubscriptionsError> for Error
Source§fn from(err: DescribeNotificationSubscriptionsError) -> Self
fn from(err: DescribeNotificationSubscriptionsError) -> Self
Source§impl From<DescribeResourcePermissionsError> for Error
impl From<DescribeResourcePermissionsError> for Error
Source§fn from(err: DescribeResourcePermissionsError) -> Self
fn from(err: DescribeResourcePermissionsError) -> Self
Source§impl From<DescribeRootFoldersError> for Error
impl From<DescribeRootFoldersError> for Error
Source§fn from(err: DescribeRootFoldersError) -> Self
fn from(err: DescribeRootFoldersError) -> Self
Source§impl From<DescribeUsersError> for Error
impl From<DescribeUsersError> for Error
Source§fn from(err: DescribeUsersError) -> Self
fn from(err: DescribeUsersError) -> Self
Source§impl From<GetCurrentUserError> for Error
impl From<GetCurrentUserError> for Error
Source§fn from(err: GetCurrentUserError) -> Self
fn from(err: GetCurrentUserError) -> Self
Source§impl From<GetDocumentError> for Error
impl From<GetDocumentError> for Error
Source§fn from(err: GetDocumentError) -> Self
fn from(err: GetDocumentError) -> Self
Source§impl From<GetDocumentPathError> for Error
impl From<GetDocumentPathError> for Error
Source§fn from(err: GetDocumentPathError) -> Self
fn from(err: GetDocumentPathError) -> Self
Source§impl From<GetDocumentVersionError> for Error
impl From<GetDocumentVersionError> for Error
Source§fn from(err: GetDocumentVersionError) -> Self
fn from(err: GetDocumentVersionError) -> Self
Source§impl From<GetFolderError> for Error
impl From<GetFolderError> for Error
Source§fn from(err: GetFolderError) -> Self
fn from(err: GetFolderError) -> Self
Source§impl From<GetFolderPathError> for Error
impl From<GetFolderPathError> for Error
Source§fn from(err: GetFolderPathError) -> Self
fn from(err: GetFolderPathError) -> Self
Source§impl From<GetResourcesError> for Error
impl From<GetResourcesError> for Error
Source§fn from(err: GetResourcesError) -> Self
fn from(err: GetResourcesError) -> Self
Source§impl From<InitiateDocumentVersionUploadError> for Error
impl From<InitiateDocumentVersionUploadError> for Error
Source§fn from(err: InitiateDocumentVersionUploadError) -> Self
fn from(err: InitiateDocumentVersionUploadError) -> Self
Source§impl From<RemoveAllResourcePermissionsError> for Error
impl From<RemoveAllResourcePermissionsError> for Error
Source§fn from(err: RemoveAllResourcePermissionsError) -> Self
fn from(err: RemoveAllResourcePermissionsError) -> Self
Source§impl From<RemoveResourcePermissionError> for Error
impl From<RemoveResourcePermissionError> for Error
Source§fn from(err: RemoveResourcePermissionError) -> Self
fn from(err: RemoveResourcePermissionError) -> Self
Source§impl From<RestoreDocumentVersionsError> for Error
impl From<RestoreDocumentVersionsError> for Error
Source§fn from(err: RestoreDocumentVersionsError) -> Self
fn from(err: RestoreDocumentVersionsError) -> Self
Source§impl<R> From<SdkError<AbortDocumentVersionUploadError, R>> for Error
impl<R> From<SdkError<AbortDocumentVersionUploadError, R>> for Error
Source§fn from(err: SdkError<AbortDocumentVersionUploadError, R>) -> Self
fn from(err: SdkError<AbortDocumentVersionUploadError, R>) -> Self
Source§impl<R> From<SdkError<ActivateUserError, R>> for Error
impl<R> From<SdkError<ActivateUserError, R>> for Error
Source§fn from(err: SdkError<ActivateUserError, R>) -> Self
fn from(err: SdkError<ActivateUserError, R>) -> Self
Source§impl<R> From<SdkError<AddResourcePermissionsError, R>> for Error
impl<R> From<SdkError<AddResourcePermissionsError, R>> for Error
Source§fn from(err: SdkError<AddResourcePermissionsError, R>) -> Self
fn from(err: SdkError<AddResourcePermissionsError, R>) -> Self
Source§impl<R> From<SdkError<CreateCommentError, R>> for Error
impl<R> From<SdkError<CreateCommentError, R>> for Error
Source§fn from(err: SdkError<CreateCommentError, R>) -> Self
fn from(err: SdkError<CreateCommentError, R>) -> Self
Source§impl<R> From<SdkError<CreateCustomMetadataError, R>> for Error
impl<R> From<SdkError<CreateCustomMetadataError, R>> for Error
Source§fn from(err: SdkError<CreateCustomMetadataError, R>) -> Self
fn from(err: SdkError<CreateCustomMetadataError, R>) -> Self
Source§impl<R> From<SdkError<CreateFolderError, R>> for Error
impl<R> From<SdkError<CreateFolderError, R>> for Error
Source§fn from(err: SdkError<CreateFolderError, R>) -> Self
fn from(err: SdkError<CreateFolderError, R>) -> Self
Source§impl<R> From<SdkError<CreateLabelsError, R>> for Error
impl<R> From<SdkError<CreateLabelsError, R>> for Error
Source§fn from(err: SdkError<CreateLabelsError, R>) -> Self
fn from(err: SdkError<CreateLabelsError, R>) -> Self
Source§impl<R> From<SdkError<CreateNotificationSubscriptionError, R>> for Error
impl<R> From<SdkError<CreateNotificationSubscriptionError, R>> for Error
Source§fn from(err: SdkError<CreateNotificationSubscriptionError, R>) -> Self
fn from(err: SdkError<CreateNotificationSubscriptionError, R>) -> Self
Source§impl<R> From<SdkError<CreateUserError, R>> for Error
impl<R> From<SdkError<CreateUserError, R>> for Error
Source§fn from(err: SdkError<CreateUserError, R>) -> Self
fn from(err: SdkError<CreateUserError, R>) -> Self
Source§impl<R> From<SdkError<DeactivateUserError, R>> for Error
impl<R> From<SdkError<DeactivateUserError, R>> for Error
Source§fn from(err: SdkError<DeactivateUserError, R>) -> Self
fn from(err: SdkError<DeactivateUserError, R>) -> Self
Source§impl<R> From<SdkError<DeleteCommentError, R>> for Error
impl<R> From<SdkError<DeleteCommentError, R>> for Error
Source§fn from(err: SdkError<DeleteCommentError, R>) -> Self
fn from(err: SdkError<DeleteCommentError, R>) -> Self
Source§impl<R> From<SdkError<DeleteCustomMetadataError, R>> for Error
impl<R> From<SdkError<DeleteCustomMetadataError, R>> for Error
Source§fn from(err: SdkError<DeleteCustomMetadataError, R>) -> Self
fn from(err: SdkError<DeleteCustomMetadataError, R>) -> Self
Source§impl<R> From<SdkError<DeleteDocumentError, R>> for Error
impl<R> From<SdkError<DeleteDocumentError, R>> for Error
Source§fn from(err: SdkError<DeleteDocumentError, R>) -> Self
fn from(err: SdkError<DeleteDocumentError, R>) -> Self
Source§impl<R> From<SdkError<DeleteDocumentVersionError, R>> for Error
impl<R> From<SdkError<DeleteDocumentVersionError, R>> for Error
Source§fn from(err: SdkError<DeleteDocumentVersionError, R>) -> Self
fn from(err: SdkError<DeleteDocumentVersionError, R>) -> Self
Source§impl<R> From<SdkError<DeleteFolderContentsError, R>> for Error
impl<R> From<SdkError<DeleteFolderContentsError, R>> for Error
Source§fn from(err: SdkError<DeleteFolderContentsError, R>) -> Self
fn from(err: SdkError<DeleteFolderContentsError, R>) -> Self
Source§impl<R> From<SdkError<DeleteFolderError, R>> for Error
impl<R> From<SdkError<DeleteFolderError, R>> for Error
Source§fn from(err: SdkError<DeleteFolderError, R>) -> Self
fn from(err: SdkError<DeleteFolderError, R>) -> Self
Source§impl<R> From<SdkError<DeleteLabelsError, R>> for Error
impl<R> From<SdkError<DeleteLabelsError, R>> for Error
Source§fn from(err: SdkError<DeleteLabelsError, R>) -> Self
fn from(err: SdkError<DeleteLabelsError, R>) -> Self
Source§impl<R> From<SdkError<DeleteNotificationSubscriptionError, R>> for Error
impl<R> From<SdkError<DeleteNotificationSubscriptionError, R>> for Error
Source§fn from(err: SdkError<DeleteNotificationSubscriptionError, R>) -> Self
fn from(err: SdkError<DeleteNotificationSubscriptionError, R>) -> Self
Source§impl<R> From<SdkError<DeleteUserError, R>> for Error
impl<R> From<SdkError<DeleteUserError, R>> for Error
Source§fn from(err: SdkError<DeleteUserError, R>) -> Self
fn from(err: SdkError<DeleteUserError, R>) -> Self
Source§impl<R> From<SdkError<DescribeActivitiesError, R>> for Error
impl<R> From<SdkError<DescribeActivitiesError, R>> for Error
Source§fn from(err: SdkError<DescribeActivitiesError, R>) -> Self
fn from(err: SdkError<DescribeActivitiesError, R>) -> Self
Source§impl<R> From<SdkError<DescribeCommentsError, R>> for Error
impl<R> From<SdkError<DescribeCommentsError, R>> for Error
Source§fn from(err: SdkError<DescribeCommentsError, R>) -> Self
fn from(err: SdkError<DescribeCommentsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeDocumentVersionsError, R>> for Error
impl<R> From<SdkError<DescribeDocumentVersionsError, R>> for Error
Source§fn from(err: SdkError<DescribeDocumentVersionsError, R>) -> Self
fn from(err: SdkError<DescribeDocumentVersionsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeFolderContentsError, R>> for Error
impl<R> From<SdkError<DescribeFolderContentsError, R>> for Error
Source§fn from(err: SdkError<DescribeFolderContentsError, R>) -> Self
fn from(err: SdkError<DescribeFolderContentsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeGroupsError, R>> for Error
impl<R> From<SdkError<DescribeGroupsError, R>> for Error
Source§fn from(err: SdkError<DescribeGroupsError, R>) -> Self
fn from(err: SdkError<DescribeGroupsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeNotificationSubscriptionsError, R>> for Error
impl<R> From<SdkError<DescribeNotificationSubscriptionsError, R>> for Error
Source§fn from(err: SdkError<DescribeNotificationSubscriptionsError, R>) -> Self
fn from(err: SdkError<DescribeNotificationSubscriptionsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeResourcePermissionsError, R>> for Error
impl<R> From<SdkError<DescribeResourcePermissionsError, R>> for Error
Source§fn from(err: SdkError<DescribeResourcePermissionsError, R>) -> Self
fn from(err: SdkError<DescribeResourcePermissionsError, R>) -> Self
Source§impl<R> From<SdkError<DescribeRootFoldersError, R>> for Error
impl<R> From<SdkError<DescribeRootFoldersError, R>> for Error
Source§fn from(err: SdkError<DescribeRootFoldersError, R>) -> Self
fn from(err: SdkError<DescribeRootFoldersError, R>) -> Self
Source§impl<R> From<SdkError<DescribeUsersError, R>> for Error
impl<R> From<SdkError<DescribeUsersError, R>> for Error
Source§fn from(err: SdkError<DescribeUsersError, R>) -> Self
fn from(err: SdkError<DescribeUsersError, R>) -> Self
Source§impl<R> From<SdkError<GetCurrentUserError, R>> for Error
impl<R> From<SdkError<GetCurrentUserError, R>> for Error
Source§fn from(err: SdkError<GetCurrentUserError, R>) -> Self
fn from(err: SdkError<GetCurrentUserError, R>) -> Self
Source§impl<R> From<SdkError<GetDocumentError, R>> for Error
impl<R> From<SdkError<GetDocumentError, R>> for Error
Source§fn from(err: SdkError<GetDocumentError, R>) -> Self
fn from(err: SdkError<GetDocumentError, R>) -> Self
Source§impl<R> From<SdkError<GetDocumentPathError, R>> for Error
impl<R> From<SdkError<GetDocumentPathError, R>> for Error
Source§fn from(err: SdkError<GetDocumentPathError, R>) -> Self
fn from(err: SdkError<GetDocumentPathError, R>) -> Self
Source§impl<R> From<SdkError<GetDocumentVersionError, R>> for Error
impl<R> From<SdkError<GetDocumentVersionError, R>> for Error
Source§fn from(err: SdkError<GetDocumentVersionError, R>) -> Self
fn from(err: SdkError<GetDocumentVersionError, R>) -> Self
Source§impl<R> From<SdkError<GetFolderError, R>> for Error
impl<R> From<SdkError<GetFolderError, R>> for Error
Source§fn from(err: SdkError<GetFolderError, R>) -> Self
fn from(err: SdkError<GetFolderError, R>) -> Self
Source§impl<R> From<SdkError<GetFolderPathError, R>> for Error
impl<R> From<SdkError<GetFolderPathError, R>> for Error
Source§fn from(err: SdkError<GetFolderPathError, R>) -> Self
fn from(err: SdkError<GetFolderPathError, R>) -> Self
Source§impl<R> From<SdkError<GetResourcesError, R>> for Error
impl<R> From<SdkError<GetResourcesError, R>> for Error
Source§fn from(err: SdkError<GetResourcesError, R>) -> Self
fn from(err: SdkError<GetResourcesError, R>) -> Self
Source§impl<R> From<SdkError<InitiateDocumentVersionUploadError, R>> for Error
impl<R> From<SdkError<InitiateDocumentVersionUploadError, R>> for Error
Source§fn from(err: SdkError<InitiateDocumentVersionUploadError, R>) -> Self
fn from(err: SdkError<InitiateDocumentVersionUploadError, R>) -> Self
Source§impl<R> From<SdkError<RemoveAllResourcePermissionsError, R>> for Error
impl<R> From<SdkError<RemoveAllResourcePermissionsError, R>> for Error
Source§fn from(err: SdkError<RemoveAllResourcePermissionsError, R>) -> Self
fn from(err: SdkError<RemoveAllResourcePermissionsError, R>) -> Self
Source§impl<R> From<SdkError<RemoveResourcePermissionError, R>> for Error
impl<R> From<SdkError<RemoveResourcePermissionError, R>> for Error
Source§fn from(err: SdkError<RemoveResourcePermissionError, R>) -> Self
fn from(err: SdkError<RemoveResourcePermissionError, R>) -> Self
Source§impl<R> From<SdkError<RestoreDocumentVersionsError, R>> for Error
impl<R> From<SdkError<RestoreDocumentVersionsError, R>> for Error
Source§fn from(err: SdkError<RestoreDocumentVersionsError, R>) -> Self
fn from(err: SdkError<RestoreDocumentVersionsError, R>) -> Self
Source§impl<R> From<SdkError<SearchResourcesError, R>> for Error
impl<R> From<SdkError<SearchResourcesError, R>> for Error
Source§fn from(err: SdkError<SearchResourcesError, R>) -> Self
fn from(err: SdkError<SearchResourcesError, R>) -> Self
Source§impl<R> From<SdkError<UpdateDocumentError, R>> for Error
impl<R> From<SdkError<UpdateDocumentError, R>> for Error
Source§fn from(err: SdkError<UpdateDocumentError, R>) -> Self
fn from(err: SdkError<UpdateDocumentError, R>) -> Self
Source§impl<R> From<SdkError<UpdateDocumentVersionError, R>> for Error
impl<R> From<SdkError<UpdateDocumentVersionError, R>> for Error
Source§fn from(err: SdkError<UpdateDocumentVersionError, R>) -> Self
fn from(err: SdkError<UpdateDocumentVersionError, R>) -> Self
Source§impl<R> From<SdkError<UpdateFolderError, R>> for Error
impl<R> From<SdkError<UpdateFolderError, R>> for Error
Source§fn from(err: SdkError<UpdateFolderError, R>) -> Self
fn from(err: SdkError<UpdateFolderError, R>) -> Self
Source§impl<R> From<SdkError<UpdateUserError, R>> for Error
impl<R> From<SdkError<UpdateUserError, R>> for Error
Source§fn from(err: SdkError<UpdateUserError, R>) -> Self
fn from(err: SdkError<UpdateUserError, R>) -> Self
Source§impl From<SearchResourcesError> for Error
impl From<SearchResourcesError> for Error
Source§fn from(err: SearchResourcesError) -> Self
fn from(err: SearchResourcesError) -> Self
Source§impl From<UpdateDocumentError> for Error
impl From<UpdateDocumentError> for Error
Source§fn from(err: UpdateDocumentError) -> Self
fn from(err: UpdateDocumentError) -> Self
Source§impl From<UpdateDocumentVersionError> for Error
impl From<UpdateDocumentVersionError> for Error
Source§fn from(err: UpdateDocumentVersionError) -> Self
fn from(err: UpdateDocumentVersionError) -> Self
Source§impl From<UpdateFolderError> for Error
impl From<UpdateFolderError> for Error
Source§fn from(err: UpdateFolderError) -> Self
fn from(err: UpdateFolderError) -> Self
Source§impl From<UpdateUserError> for Error
impl From<UpdateUserError> for Error
Source§fn from(err: UpdateUserError) -> Self
fn from(err: UpdateUserError) -> 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);