#[non_exhaustive]pub enum Error {
Show 36 variants
AccessDeniedException(AccessDeniedException),
BatchWriteException(BatchWriteException),
CannotListParentOfRootException(CannotListParentOfRootException),
DirectoryAlreadyExistsException(DirectoryAlreadyExistsException),
DirectoryDeletedException(DirectoryDeletedException),
DirectoryNotDisabledException(DirectoryNotDisabledException),
DirectoryNotEnabledException(DirectoryNotEnabledException),
FacetAlreadyExistsException(FacetAlreadyExistsException),
FacetInUseException(FacetInUseException),
FacetNotFoundException(FacetNotFoundException),
FacetValidationException(FacetValidationException),
IncompatibleSchemaException(IncompatibleSchemaException),
IndexedAttributeMissingException(IndexedAttributeMissingException),
InternalServiceException(InternalServiceException),
InvalidArnException(InvalidArnException),
InvalidAttachmentException(InvalidAttachmentException),
InvalidFacetUpdateException(InvalidFacetUpdateException),
InvalidNextTokenException(InvalidNextTokenException),
InvalidRuleException(InvalidRuleException),
InvalidSchemaDocException(InvalidSchemaDocException),
InvalidTaggingRequestException(InvalidTaggingRequestException),
LimitExceededException(LimitExceededException),
LinkNameAlreadyInUseException(LinkNameAlreadyInUseException),
NotIndexException(NotIndexException),
NotNodeException(NotNodeException),
NotPolicyException(NotPolicyException),
ObjectAlreadyDetachedException(ObjectAlreadyDetachedException),
ObjectNotDetachedException(ObjectNotDetachedException),
ResourceNotFoundException(ResourceNotFoundException),
RetryableConflictException(RetryableConflictException),
SchemaAlreadyExistsException(SchemaAlreadyExistsException),
SchemaAlreadyPublishedException(SchemaAlreadyPublishedException),
StillContainsLinksException(StillContainsLinksException),
UnsupportedIndexTypeException(UnsupportedIndexTypeException),
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)
Access denied or directory not found. Either you don't have permissions for this directory or the directory does not exist. Try calling ListDirectories
and check your permissions.
BatchWriteException(BatchWriteException)
A BatchWrite
exception has occurred.
CannotListParentOfRootException(CannotListParentOfRootException)
Cannot list the parents of a Directory
root.
DirectoryAlreadyExistsException(DirectoryAlreadyExistsException)
Indicates that a Directory
could not be created due to a naming conflict. Choose a different name and try again.
DirectoryDeletedException(DirectoryDeletedException)
A directory that has been deleted and to which access has been attempted. Note: The requested resource will eventually cease to exist.
DirectoryNotDisabledException(DirectoryNotDisabledException)
An operation can only operate on a disabled directory.
DirectoryNotEnabledException(DirectoryNotEnabledException)
Operations are only permitted on enabled directories.
FacetAlreadyExistsException(FacetAlreadyExistsException)
A facet with the same name already exists.
FacetInUseException(FacetInUseException)
Occurs when deleting a facet that contains an attribute that is a target to an attribute reference in a different facet.
FacetNotFoundException(FacetNotFoundException)
The specified Facet
could not be found.
FacetValidationException(FacetValidationException)
The Facet
that you provided was not well formed or could not be validated with the schema.
IncompatibleSchemaException(IncompatibleSchemaException)
Indicates a failure occurred while performing a check for backward compatibility between the specified schema and the schema that is currently applied to the directory.
IndexedAttributeMissingException(IndexedAttributeMissingException)
An object has been attempted to be attached to an object that does not have the appropriate attribute value.
InternalServiceException(InternalServiceException)
Indicates a problem that must be resolved by Amazon Web Services. This might be a transient error in which case you can retry your request until it succeeds. Otherwise, go to the AWS Service Health Dashboard site to see if there are any operational issues with the service.
InvalidArnException(InvalidArnException)
Indicates that the provided ARN value is not valid.
InvalidAttachmentException(InvalidAttachmentException)
Indicates that an attempt to make an attachment was invalid. For example, attaching two nodes with a link type that is not applicable to the nodes or attempting to apply a schema to a directory a second time.
InvalidFacetUpdateException(InvalidFacetUpdateException)
An attempt to modify a Facet
resulted in an invalid schema exception.
InvalidNextTokenException(InvalidNextTokenException)
Indicates that the NextToken
value is not valid.
InvalidRuleException(InvalidRuleException)
Occurs when any of the rule parameter keys or values are invalid.
InvalidSchemaDocException(InvalidSchemaDocException)
Indicates that the provided SchemaDoc
value is not valid.
InvalidTaggingRequestException(InvalidTaggingRequestException)
Can occur for multiple reasons such as when you tag a resource that doesn’t exist or if you specify a higher number of tags for a resource than the allowed limit. Allowed limit is 50 tags per resource.
LimitExceededException(LimitExceededException)
Indicates that limits are exceeded. See Limits for more information.
LinkNameAlreadyInUseException(LinkNameAlreadyInUseException)
Indicates that a link could not be created due to a naming conflict. Choose a different name and then try again.
NotIndexException(NotIndexException)
Indicates that the requested operation can only operate on index objects.
NotNodeException(NotNodeException)
Occurs when any invalid operations are performed on an object that is not a node, such as calling ListObjectChildren
for a leaf node object.
NotPolicyException(NotPolicyException)
Indicates that the requested operation can only operate on policy objects.
ObjectAlreadyDetachedException(ObjectAlreadyDetachedException)
Indicates that the object is not attached to the index.
ObjectNotDetachedException(ObjectNotDetachedException)
Indicates that the requested operation cannot be completed because the object has not been detached from the tree.
ResourceNotFoundException(ResourceNotFoundException)
The specified resource could not be found.
RetryableConflictException(RetryableConflictException)
Occurs when a conflict with a previous successful write is detected. For example, if a write operation occurs on an object and then an attempt is made to read the object using “SERIALIZABLE” consistency, this exception may result. This generally occurs when the previous write did not have time to propagate to the host serving the current request. A retry (with appropriate backoff logic) is the recommended response to this exception.
SchemaAlreadyExistsException(SchemaAlreadyExistsException)
Indicates that a schema could not be created due to a naming conflict. Please select a different name and then try again.
SchemaAlreadyPublishedException(SchemaAlreadyPublishedException)
Indicates that a schema is already published.
StillContainsLinksException(StillContainsLinksException)
The object could not be deleted because links still exist. Remove the links and then try the operation again.
UnsupportedIndexTypeException(UnsupportedIndexTypeException)
Indicates that the requested index type is not supported.
ValidationException(ValidationException)
Indicates that your request is malformed in some manner. See the exception message.
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<AddFacetToObjectError> for Error
impl From<AddFacetToObjectError> for Error
Source§fn from(err: AddFacetToObjectError) -> Self
fn from(err: AddFacetToObjectError) -> Self
Source§impl From<ApplySchemaError> for Error
impl From<ApplySchemaError> for Error
Source§fn from(err: ApplySchemaError) -> Self
fn from(err: ApplySchemaError) -> Self
Source§impl From<AttachObjectError> for Error
impl From<AttachObjectError> for Error
Source§fn from(err: AttachObjectError) -> Self
fn from(err: AttachObjectError) -> Self
Source§impl From<AttachPolicyError> for Error
impl From<AttachPolicyError> for Error
Source§fn from(err: AttachPolicyError) -> Self
fn from(err: AttachPolicyError) -> Self
Source§impl From<AttachToIndexError> for Error
impl From<AttachToIndexError> for Error
Source§fn from(err: AttachToIndexError) -> Self
fn from(err: AttachToIndexError) -> Self
Source§impl From<AttachTypedLinkError> for Error
impl From<AttachTypedLinkError> for Error
Source§fn from(err: AttachTypedLinkError) -> Self
fn from(err: AttachTypedLinkError) -> Self
Source§impl From<BatchReadError> for Error
impl From<BatchReadError> for Error
Source§fn from(err: BatchReadError) -> Self
fn from(err: BatchReadError) -> Self
Source§impl From<BatchWriteError> for Error
impl From<BatchWriteError> for Error
Source§fn from(err: BatchWriteError) -> Self
fn from(err: BatchWriteError) -> 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<CreateDirectoryError> for Error
impl From<CreateDirectoryError> for Error
Source§fn from(err: CreateDirectoryError) -> Self
fn from(err: CreateDirectoryError) -> Self
Source§impl From<CreateFacetError> for Error
impl From<CreateFacetError> for Error
Source§fn from(err: CreateFacetError) -> Self
fn from(err: CreateFacetError) -> Self
Source§impl From<CreateIndexError> for Error
impl From<CreateIndexError> for Error
Source§fn from(err: CreateIndexError) -> Self
fn from(err: CreateIndexError) -> Self
Source§impl From<CreateObjectError> for Error
impl From<CreateObjectError> for Error
Source§fn from(err: CreateObjectError) -> Self
fn from(err: CreateObjectError) -> Self
Source§impl From<CreateSchemaError> for Error
impl From<CreateSchemaError> for Error
Source§fn from(err: CreateSchemaError) -> Self
fn from(err: CreateSchemaError) -> Self
Source§impl From<CreateTypedLinkFacetError> for Error
impl From<CreateTypedLinkFacetError> for Error
Source§fn from(err: CreateTypedLinkFacetError) -> Self
fn from(err: CreateTypedLinkFacetError) -> Self
Source§impl From<DeleteDirectoryError> for Error
impl From<DeleteDirectoryError> for Error
Source§fn from(err: DeleteDirectoryError) -> Self
fn from(err: DeleteDirectoryError) -> Self
Source§impl From<DeleteFacetError> for Error
impl From<DeleteFacetError> for Error
Source§fn from(err: DeleteFacetError) -> Self
fn from(err: DeleteFacetError) -> Self
Source§impl From<DeleteObjectError> for Error
impl From<DeleteObjectError> for Error
Source§fn from(err: DeleteObjectError) -> Self
fn from(err: DeleteObjectError) -> Self
Source§impl From<DeleteSchemaError> for Error
impl From<DeleteSchemaError> for Error
Source§fn from(err: DeleteSchemaError) -> Self
fn from(err: DeleteSchemaError) -> Self
Source§impl From<DeleteTypedLinkFacetError> for Error
impl From<DeleteTypedLinkFacetError> for Error
Source§fn from(err: DeleteTypedLinkFacetError) -> Self
fn from(err: DeleteTypedLinkFacetError) -> Self
Source§impl From<DetachFromIndexError> for Error
impl From<DetachFromIndexError> for Error
Source§fn from(err: DetachFromIndexError) -> Self
fn from(err: DetachFromIndexError) -> Self
Source§impl From<DetachObjectError> for Error
impl From<DetachObjectError> for Error
Source§fn from(err: DetachObjectError) -> Self
fn from(err: DetachObjectError) -> Self
Source§impl From<DetachPolicyError> for Error
impl From<DetachPolicyError> for Error
Source§fn from(err: DetachPolicyError) -> Self
fn from(err: DetachPolicyError) -> Self
Source§impl From<DetachTypedLinkError> for Error
impl From<DetachTypedLinkError> for Error
Source§fn from(err: DetachTypedLinkError) -> Self
fn from(err: DetachTypedLinkError) -> Self
Source§impl From<DisableDirectoryError> for Error
impl From<DisableDirectoryError> for Error
Source§fn from(err: DisableDirectoryError) -> Self
fn from(err: DisableDirectoryError) -> Self
Source§impl From<EnableDirectoryError> for Error
impl From<EnableDirectoryError> for Error
Source§fn from(err: EnableDirectoryError) -> Self
fn from(err: EnableDirectoryError) -> Self
Source§impl From<GetAppliedSchemaVersionError> for Error
impl From<GetAppliedSchemaVersionError> for Error
Source§fn from(err: GetAppliedSchemaVersionError) -> Self
fn from(err: GetAppliedSchemaVersionError) -> Self
Source§impl From<GetDirectoryError> for Error
impl From<GetDirectoryError> for Error
Source§fn from(err: GetDirectoryError) -> Self
fn from(err: GetDirectoryError) -> Self
Source§impl From<GetFacetError> for Error
impl From<GetFacetError> for Error
Source§fn from(err: GetFacetError) -> Self
fn from(err: GetFacetError) -> Self
Source§impl From<GetLinkAttributesError> for Error
impl From<GetLinkAttributesError> for Error
Source§fn from(err: GetLinkAttributesError) -> Self
fn from(err: GetLinkAttributesError) -> Self
Source§impl From<GetObjectAttributesError> for Error
impl From<GetObjectAttributesError> for Error
Source§fn from(err: GetObjectAttributesError) -> Self
fn from(err: GetObjectAttributesError) -> Self
Source§impl From<GetObjectInformationError> for Error
impl From<GetObjectInformationError> for Error
Source§fn from(err: GetObjectInformationError) -> Self
fn from(err: GetObjectInformationError) -> Self
Source§impl From<GetSchemaAsJsonError> for Error
impl From<GetSchemaAsJsonError> for Error
Source§fn from(err: GetSchemaAsJsonError) -> Self
fn from(err: GetSchemaAsJsonError) -> Self
Source§impl From<GetTypedLinkFacetInformationError> for Error
impl From<GetTypedLinkFacetInformationError> for Error
Source§fn from(err: GetTypedLinkFacetInformationError) -> Self
fn from(err: GetTypedLinkFacetInformationError) -> Self
Source§impl From<ListAppliedSchemaArnsError> for Error
impl From<ListAppliedSchemaArnsError> for Error
Source§fn from(err: ListAppliedSchemaArnsError) -> Self
fn from(err: ListAppliedSchemaArnsError) -> Self
Source§impl From<ListAttachedIndicesError> for Error
impl From<ListAttachedIndicesError> for Error
Source§fn from(err: ListAttachedIndicesError) -> Self
fn from(err: ListAttachedIndicesError) -> Self
Source§impl From<ListDevelopmentSchemaArnsError> for Error
impl From<ListDevelopmentSchemaArnsError> for Error
Source§fn from(err: ListDevelopmentSchemaArnsError) -> Self
fn from(err: ListDevelopmentSchemaArnsError) -> Self
Source§impl From<ListDirectoriesError> for Error
impl From<ListDirectoriesError> for Error
Source§fn from(err: ListDirectoriesError) -> Self
fn from(err: ListDirectoriesError) -> Self
Source§impl From<ListFacetAttributesError> for Error
impl From<ListFacetAttributesError> for Error
Source§fn from(err: ListFacetAttributesError) -> Self
fn from(err: ListFacetAttributesError) -> Self
Source§impl From<ListFacetNamesError> for Error
impl From<ListFacetNamesError> for Error
Source§fn from(err: ListFacetNamesError) -> Self
fn from(err: ListFacetNamesError) -> Self
Source§impl From<ListIncomingTypedLinksError> for Error
impl From<ListIncomingTypedLinksError> for Error
Source§fn from(err: ListIncomingTypedLinksError) -> Self
fn from(err: ListIncomingTypedLinksError) -> Self
Source§impl From<ListIndexError> for Error
impl From<ListIndexError> for Error
Source§fn from(err: ListIndexError) -> Self
fn from(err: ListIndexError) -> Self
Source§impl From<ListManagedSchemaArnsError> for Error
impl From<ListManagedSchemaArnsError> for Error
Source§fn from(err: ListManagedSchemaArnsError) -> Self
fn from(err: ListManagedSchemaArnsError) -> Self
Source§impl From<ListObjectAttributesError> for Error
impl From<ListObjectAttributesError> for Error
Source§fn from(err: ListObjectAttributesError) -> Self
fn from(err: ListObjectAttributesError) -> Self
Source§impl From<ListObjectChildrenError> for Error
impl From<ListObjectChildrenError> for Error
Source§fn from(err: ListObjectChildrenError) -> Self
fn from(err: ListObjectChildrenError) -> Self
Source§impl From<ListObjectParentPathsError> for Error
impl From<ListObjectParentPathsError> for Error
Source§fn from(err: ListObjectParentPathsError) -> Self
fn from(err: ListObjectParentPathsError) -> Self
Source§impl From<ListObjectParentsError> for Error
impl From<ListObjectParentsError> for Error
Source§fn from(err: ListObjectParentsError) -> Self
fn from(err: ListObjectParentsError) -> Self
Source§impl From<ListObjectPoliciesError> for Error
impl From<ListObjectPoliciesError> for Error
Source§fn from(err: ListObjectPoliciesError) -> Self
fn from(err: ListObjectPoliciesError) -> Self
Source§impl From<ListOutgoingTypedLinksError> for Error
impl From<ListOutgoingTypedLinksError> for Error
Source§fn from(err: ListOutgoingTypedLinksError) -> Self
fn from(err: ListOutgoingTypedLinksError) -> Self
Source§impl From<ListPolicyAttachmentsError> for Error
impl From<ListPolicyAttachmentsError> for Error
Source§fn from(err: ListPolicyAttachmentsError) -> Self
fn from(err: ListPolicyAttachmentsError) -> Self
Source§impl From<ListPublishedSchemaArnsError> for Error
impl From<ListPublishedSchemaArnsError> for Error
Source§fn from(err: ListPublishedSchemaArnsError) -> Self
fn from(err: ListPublishedSchemaArnsError) -> Self
Source§impl From<ListTagsForResourceError> for Error
impl From<ListTagsForResourceError> for Error
Source§fn from(err: ListTagsForResourceError) -> Self
fn from(err: ListTagsForResourceError) -> Self
Source§impl From<ListTypedLinkFacetAttributesError> for Error
impl From<ListTypedLinkFacetAttributesError> for Error
Source§fn from(err: ListTypedLinkFacetAttributesError) -> Self
fn from(err: ListTypedLinkFacetAttributesError) -> Self
Source§impl From<ListTypedLinkFacetNamesError> for Error
impl From<ListTypedLinkFacetNamesError> for Error
Source§fn from(err: ListTypedLinkFacetNamesError) -> Self
fn from(err: ListTypedLinkFacetNamesError) -> Self
Source§impl From<LookupPolicyError> for Error
impl From<LookupPolicyError> for Error
Source§fn from(err: LookupPolicyError) -> Self
fn from(err: LookupPolicyError) -> Self
Source§impl From<PublishSchemaError> for Error
impl From<PublishSchemaError> for Error
Source§fn from(err: PublishSchemaError) -> Self
fn from(err: PublishSchemaError) -> Self
Source§impl From<PutSchemaFromJsonError> for Error
impl From<PutSchemaFromJsonError> for Error
Source§fn from(err: PutSchemaFromJsonError) -> Self
fn from(err: PutSchemaFromJsonError) -> Self
Source§impl From<RemoveFacetFromObjectError> for Error
impl From<RemoveFacetFromObjectError> for Error
Source§fn from(err: RemoveFacetFromObjectError) -> Self
fn from(err: RemoveFacetFromObjectError) -> Self
Source§impl<R> From<SdkError<AddFacetToObjectError, R>> for Error
impl<R> From<SdkError<AddFacetToObjectError, R>> for Error
Source§fn from(err: SdkError<AddFacetToObjectError, R>) -> Self
fn from(err: SdkError<AddFacetToObjectError, R>) -> Self
Source§impl<R> From<SdkError<ApplySchemaError, R>> for Error
impl<R> From<SdkError<ApplySchemaError, R>> for Error
Source§fn from(err: SdkError<ApplySchemaError, R>) -> Self
fn from(err: SdkError<ApplySchemaError, R>) -> Self
Source§impl<R> From<SdkError<AttachObjectError, R>> for Error
impl<R> From<SdkError<AttachObjectError, R>> for Error
Source§fn from(err: SdkError<AttachObjectError, R>) -> Self
fn from(err: SdkError<AttachObjectError, R>) -> Self
Source§impl<R> From<SdkError<AttachPolicyError, R>> for Error
impl<R> From<SdkError<AttachPolicyError, R>> for Error
Source§fn from(err: SdkError<AttachPolicyError, R>) -> Self
fn from(err: SdkError<AttachPolicyError, R>) -> Self
Source§impl<R> From<SdkError<AttachToIndexError, R>> for Error
impl<R> From<SdkError<AttachToIndexError, R>> for Error
Source§fn from(err: SdkError<AttachToIndexError, R>) -> Self
fn from(err: SdkError<AttachToIndexError, R>) -> Self
Source§impl<R> From<SdkError<AttachTypedLinkError, R>> for Error
impl<R> From<SdkError<AttachTypedLinkError, R>> for Error
Source§fn from(err: SdkError<AttachTypedLinkError, R>) -> Self
fn from(err: SdkError<AttachTypedLinkError, R>) -> Self
Source§impl<R> From<SdkError<BatchReadError, R>> for Error
impl<R> From<SdkError<BatchReadError, R>> for Error
Source§fn from(err: SdkError<BatchReadError, R>) -> Self
fn from(err: SdkError<BatchReadError, R>) -> Self
Source§impl<R> From<SdkError<BatchWriteError, R>> for Error
impl<R> From<SdkError<BatchWriteError, R>> for Error
Source§fn from(err: SdkError<BatchWriteError, R>) -> Self
fn from(err: SdkError<BatchWriteError, R>) -> Self
Source§impl<R> From<SdkError<CreateDirectoryError, R>> for Error
impl<R> From<SdkError<CreateDirectoryError, R>> for Error
Source§fn from(err: SdkError<CreateDirectoryError, R>) -> Self
fn from(err: SdkError<CreateDirectoryError, R>) -> Self
Source§impl<R> From<SdkError<CreateFacetError, R>> for Error
impl<R> From<SdkError<CreateFacetError, R>> for Error
Source§fn from(err: SdkError<CreateFacetError, R>) -> Self
fn from(err: SdkError<CreateFacetError, R>) -> Self
Source§impl<R> From<SdkError<CreateIndexError, R>> for Error
impl<R> From<SdkError<CreateIndexError, R>> for Error
Source§fn from(err: SdkError<CreateIndexError, R>) -> Self
fn from(err: SdkError<CreateIndexError, R>) -> Self
Source§impl<R> From<SdkError<CreateObjectError, R>> for Error
impl<R> From<SdkError<CreateObjectError, R>> for Error
Source§fn from(err: SdkError<CreateObjectError, R>) -> Self
fn from(err: SdkError<CreateObjectError, R>) -> Self
Source§impl<R> From<SdkError<CreateSchemaError, R>> for Error
impl<R> From<SdkError<CreateSchemaError, R>> for Error
Source§fn from(err: SdkError<CreateSchemaError, R>) -> Self
fn from(err: SdkError<CreateSchemaError, R>) -> Self
Source§impl<R> From<SdkError<CreateTypedLinkFacetError, R>> for Error
impl<R> From<SdkError<CreateTypedLinkFacetError, R>> for Error
Source§fn from(err: SdkError<CreateTypedLinkFacetError, R>) -> Self
fn from(err: SdkError<CreateTypedLinkFacetError, R>) -> Self
Source§impl<R> From<SdkError<DeleteDirectoryError, R>> for Error
impl<R> From<SdkError<DeleteDirectoryError, R>> for Error
Source§fn from(err: SdkError<DeleteDirectoryError, R>) -> Self
fn from(err: SdkError<DeleteDirectoryError, R>) -> Self
Source§impl<R> From<SdkError<DeleteFacetError, R>> for Error
impl<R> From<SdkError<DeleteFacetError, R>> for Error
Source§fn from(err: SdkError<DeleteFacetError, R>) -> Self
fn from(err: SdkError<DeleteFacetError, R>) -> Self
Source§impl<R> From<SdkError<DeleteObjectError, R>> for Error
impl<R> From<SdkError<DeleteObjectError, R>> for Error
Source§fn from(err: SdkError<DeleteObjectError, R>) -> Self
fn from(err: SdkError<DeleteObjectError, R>) -> Self
Source§impl<R> From<SdkError<DeleteSchemaError, R>> for Error
impl<R> From<SdkError<DeleteSchemaError, R>> for Error
Source§fn from(err: SdkError<DeleteSchemaError, R>) -> Self
fn from(err: SdkError<DeleteSchemaError, R>) -> Self
Source§impl<R> From<SdkError<DeleteTypedLinkFacetError, R>> for Error
impl<R> From<SdkError<DeleteTypedLinkFacetError, R>> for Error
Source§fn from(err: SdkError<DeleteTypedLinkFacetError, R>) -> Self
fn from(err: SdkError<DeleteTypedLinkFacetError, R>) -> Self
Source§impl<R> From<SdkError<DetachFromIndexError, R>> for Error
impl<R> From<SdkError<DetachFromIndexError, R>> for Error
Source§fn from(err: SdkError<DetachFromIndexError, R>) -> Self
fn from(err: SdkError<DetachFromIndexError, R>) -> Self
Source§impl<R> From<SdkError<DetachObjectError, R>> for Error
impl<R> From<SdkError<DetachObjectError, R>> for Error
Source§fn from(err: SdkError<DetachObjectError, R>) -> Self
fn from(err: SdkError<DetachObjectError, R>) -> Self
Source§impl<R> From<SdkError<DetachPolicyError, R>> for Error
impl<R> From<SdkError<DetachPolicyError, R>> for Error
Source§fn from(err: SdkError<DetachPolicyError, R>) -> Self
fn from(err: SdkError<DetachPolicyError, R>) -> Self
Source§impl<R> From<SdkError<DetachTypedLinkError, R>> for Error
impl<R> From<SdkError<DetachTypedLinkError, R>> for Error
Source§fn from(err: SdkError<DetachTypedLinkError, R>) -> Self
fn from(err: SdkError<DetachTypedLinkError, R>) -> Self
Source§impl<R> From<SdkError<DisableDirectoryError, R>> for Error
impl<R> From<SdkError<DisableDirectoryError, R>> for Error
Source§fn from(err: SdkError<DisableDirectoryError, R>) -> Self
fn from(err: SdkError<DisableDirectoryError, R>) -> Self
Source§impl<R> From<SdkError<EnableDirectoryError, R>> for Error
impl<R> From<SdkError<EnableDirectoryError, R>> for Error
Source§fn from(err: SdkError<EnableDirectoryError, R>) -> Self
fn from(err: SdkError<EnableDirectoryError, R>) -> Self
Source§impl<R> From<SdkError<GetAppliedSchemaVersionError, R>> for Error
impl<R> From<SdkError<GetAppliedSchemaVersionError, R>> for Error
Source§fn from(err: SdkError<GetAppliedSchemaVersionError, R>) -> Self
fn from(err: SdkError<GetAppliedSchemaVersionError, R>) -> Self
Source§impl<R> From<SdkError<GetDirectoryError, R>> for Error
impl<R> From<SdkError<GetDirectoryError, R>> for Error
Source§fn from(err: SdkError<GetDirectoryError, R>) -> Self
fn from(err: SdkError<GetDirectoryError, R>) -> Self
Source§impl<R> From<SdkError<GetFacetError, R>> for Error
impl<R> From<SdkError<GetFacetError, R>> for Error
Source§fn from(err: SdkError<GetFacetError, R>) -> Self
fn from(err: SdkError<GetFacetError, R>) -> Self
Source§impl<R> From<SdkError<GetLinkAttributesError, R>> for Error
impl<R> From<SdkError<GetLinkAttributesError, R>> for Error
Source§fn from(err: SdkError<GetLinkAttributesError, R>) -> Self
fn from(err: SdkError<GetLinkAttributesError, R>) -> Self
Source§impl<R> From<SdkError<GetObjectAttributesError, R>> for Error
impl<R> From<SdkError<GetObjectAttributesError, R>> for Error
Source§fn from(err: SdkError<GetObjectAttributesError, R>) -> Self
fn from(err: SdkError<GetObjectAttributesError, R>) -> Self
Source§impl<R> From<SdkError<GetObjectInformationError, R>> for Error
impl<R> From<SdkError<GetObjectInformationError, R>> for Error
Source§fn from(err: SdkError<GetObjectInformationError, R>) -> Self
fn from(err: SdkError<GetObjectInformationError, R>) -> Self
Source§impl<R> From<SdkError<GetSchemaAsJsonError, R>> for Error
impl<R> From<SdkError<GetSchemaAsJsonError, R>> for Error
Source§fn from(err: SdkError<GetSchemaAsJsonError, R>) -> Self
fn from(err: SdkError<GetSchemaAsJsonError, R>) -> Self
Source§impl<R> From<SdkError<GetTypedLinkFacetInformationError, R>> for Error
impl<R> From<SdkError<GetTypedLinkFacetInformationError, R>> for Error
Source§fn from(err: SdkError<GetTypedLinkFacetInformationError, R>) -> Self
fn from(err: SdkError<GetTypedLinkFacetInformationError, R>) -> Self
Source§impl<R> From<SdkError<ListAppliedSchemaArnsError, R>> for Error
impl<R> From<SdkError<ListAppliedSchemaArnsError, R>> for Error
Source§fn from(err: SdkError<ListAppliedSchemaArnsError, R>) -> Self
fn from(err: SdkError<ListAppliedSchemaArnsError, R>) -> Self
Source§impl<R> From<SdkError<ListAttachedIndicesError, R>> for Error
impl<R> From<SdkError<ListAttachedIndicesError, R>> for Error
Source§fn from(err: SdkError<ListAttachedIndicesError, R>) -> Self
fn from(err: SdkError<ListAttachedIndicesError, R>) -> Self
Source§impl<R> From<SdkError<ListDevelopmentSchemaArnsError, R>> for Error
impl<R> From<SdkError<ListDevelopmentSchemaArnsError, R>> for Error
Source§fn from(err: SdkError<ListDevelopmentSchemaArnsError, R>) -> Self
fn from(err: SdkError<ListDevelopmentSchemaArnsError, R>) -> Self
Source§impl<R> From<SdkError<ListDirectoriesError, R>> for Error
impl<R> From<SdkError<ListDirectoriesError, R>> for Error
Source§fn from(err: SdkError<ListDirectoriesError, R>) -> Self
fn from(err: SdkError<ListDirectoriesError, R>) -> Self
Source§impl<R> From<SdkError<ListFacetAttributesError, R>> for Error
impl<R> From<SdkError<ListFacetAttributesError, R>> for Error
Source§fn from(err: SdkError<ListFacetAttributesError, R>) -> Self
fn from(err: SdkError<ListFacetAttributesError, R>) -> Self
Source§impl<R> From<SdkError<ListFacetNamesError, R>> for Error
impl<R> From<SdkError<ListFacetNamesError, R>> for Error
Source§fn from(err: SdkError<ListFacetNamesError, R>) -> Self
fn from(err: SdkError<ListFacetNamesError, R>) -> Self
Source§impl<R> From<SdkError<ListIncomingTypedLinksError, R>> for Error
impl<R> From<SdkError<ListIncomingTypedLinksError, R>> for Error
Source§fn from(err: SdkError<ListIncomingTypedLinksError, R>) -> Self
fn from(err: SdkError<ListIncomingTypedLinksError, R>) -> Self
Source§impl<R> From<SdkError<ListIndexError, R>> for Error
impl<R> From<SdkError<ListIndexError, R>> for Error
Source§fn from(err: SdkError<ListIndexError, R>) -> Self
fn from(err: SdkError<ListIndexError, R>) -> Self
Source§impl<R> From<SdkError<ListManagedSchemaArnsError, R>> for Error
impl<R> From<SdkError<ListManagedSchemaArnsError, R>> for Error
Source§fn from(err: SdkError<ListManagedSchemaArnsError, R>) -> Self
fn from(err: SdkError<ListManagedSchemaArnsError, R>) -> Self
Source§impl<R> From<SdkError<ListObjectAttributesError, R>> for Error
impl<R> From<SdkError<ListObjectAttributesError, R>> for Error
Source§fn from(err: SdkError<ListObjectAttributesError, R>) -> Self
fn from(err: SdkError<ListObjectAttributesError, R>) -> Self
Source§impl<R> From<SdkError<ListObjectChildrenError, R>> for Error
impl<R> From<SdkError<ListObjectChildrenError, R>> for Error
Source§fn from(err: SdkError<ListObjectChildrenError, R>) -> Self
fn from(err: SdkError<ListObjectChildrenError, R>) -> Self
Source§impl<R> From<SdkError<ListObjectParentPathsError, R>> for Error
impl<R> From<SdkError<ListObjectParentPathsError, R>> for Error
Source§fn from(err: SdkError<ListObjectParentPathsError, R>) -> Self
fn from(err: SdkError<ListObjectParentPathsError, R>) -> Self
Source§impl<R> From<SdkError<ListObjectParentsError, R>> for Error
impl<R> From<SdkError<ListObjectParentsError, R>> for Error
Source§fn from(err: SdkError<ListObjectParentsError, R>) -> Self
fn from(err: SdkError<ListObjectParentsError, R>) -> Self
Source§impl<R> From<SdkError<ListObjectPoliciesError, R>> for Error
impl<R> From<SdkError<ListObjectPoliciesError, R>> for Error
Source§fn from(err: SdkError<ListObjectPoliciesError, R>) -> Self
fn from(err: SdkError<ListObjectPoliciesError, R>) -> Self
Source§impl<R> From<SdkError<ListOutgoingTypedLinksError, R>> for Error
impl<R> From<SdkError<ListOutgoingTypedLinksError, R>> for Error
Source§fn from(err: SdkError<ListOutgoingTypedLinksError, R>) -> Self
fn from(err: SdkError<ListOutgoingTypedLinksError, R>) -> Self
Source§impl<R> From<SdkError<ListPolicyAttachmentsError, R>> for Error
impl<R> From<SdkError<ListPolicyAttachmentsError, R>> for Error
Source§fn from(err: SdkError<ListPolicyAttachmentsError, R>) -> Self
fn from(err: SdkError<ListPolicyAttachmentsError, R>) -> Self
Source§impl<R> From<SdkError<ListPublishedSchemaArnsError, R>> for Error
impl<R> From<SdkError<ListPublishedSchemaArnsError, R>> for Error
Source§fn from(err: SdkError<ListPublishedSchemaArnsError, R>) -> Self
fn from(err: SdkError<ListPublishedSchemaArnsError, 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§impl<R> From<SdkError<ListTypedLinkFacetAttributesError, R>> for Error
impl<R> From<SdkError<ListTypedLinkFacetAttributesError, R>> for Error
Source§fn from(err: SdkError<ListTypedLinkFacetAttributesError, R>) -> Self
fn from(err: SdkError<ListTypedLinkFacetAttributesError, R>) -> Self
Source§impl<R> From<SdkError<ListTypedLinkFacetNamesError, R>> for Error
impl<R> From<SdkError<ListTypedLinkFacetNamesError, R>> for Error
Source§fn from(err: SdkError<ListTypedLinkFacetNamesError, R>) -> Self
fn from(err: SdkError<ListTypedLinkFacetNamesError, R>) -> Self
Source§impl<R> From<SdkError<LookupPolicyError, R>> for Error
impl<R> From<SdkError<LookupPolicyError, R>> for Error
Source§fn from(err: SdkError<LookupPolicyError, R>) -> Self
fn from(err: SdkError<LookupPolicyError, R>) -> Self
Source§impl<R> From<SdkError<PublishSchemaError, R>> for Error
impl<R> From<SdkError<PublishSchemaError, R>> for Error
Source§fn from(err: SdkError<PublishSchemaError, R>) -> Self
fn from(err: SdkError<PublishSchemaError, R>) -> Self
Source§impl<R> From<SdkError<PutSchemaFromJsonError, R>> for Error
impl<R> From<SdkError<PutSchemaFromJsonError, R>> for Error
Source§fn from(err: SdkError<PutSchemaFromJsonError, R>) -> Self
fn from(err: SdkError<PutSchemaFromJsonError, R>) -> Self
Source§impl<R> From<SdkError<RemoveFacetFromObjectError, R>> for Error
impl<R> From<SdkError<RemoveFacetFromObjectError, R>> for Error
Source§fn from(err: SdkError<RemoveFacetFromObjectError, R>) -> Self
fn from(err: SdkError<RemoveFacetFromObjectError, 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<UpdateFacetError, R>> for Error
impl<R> From<SdkError<UpdateFacetError, R>> for Error
Source§fn from(err: SdkError<UpdateFacetError, R>) -> Self
fn from(err: SdkError<UpdateFacetError, R>) -> Self
Source§impl<R> From<SdkError<UpdateLinkAttributesError, R>> for Error
impl<R> From<SdkError<UpdateLinkAttributesError, R>> for Error
Source§fn from(err: SdkError<UpdateLinkAttributesError, R>) -> Self
fn from(err: SdkError<UpdateLinkAttributesError, R>) -> Self
Source§impl<R> From<SdkError<UpdateObjectAttributesError, R>> for Error
impl<R> From<SdkError<UpdateObjectAttributesError, R>> for Error
Source§fn from(err: SdkError<UpdateObjectAttributesError, R>) -> Self
fn from(err: SdkError<UpdateObjectAttributesError, R>) -> Self
Source§impl<R> From<SdkError<UpdateSchemaError, R>> for Error
impl<R> From<SdkError<UpdateSchemaError, R>> for Error
Source§fn from(err: SdkError<UpdateSchemaError, R>) -> Self
fn from(err: SdkError<UpdateSchemaError, R>) -> Self
Source§impl<R> From<SdkError<UpdateTypedLinkFacetError, R>> for Error
impl<R> From<SdkError<UpdateTypedLinkFacetError, R>> for Error
Source§fn from(err: SdkError<UpdateTypedLinkFacetError, R>) -> Self
fn from(err: SdkError<UpdateTypedLinkFacetError, R>) -> Self
Source§impl<R> From<SdkError<UpgradeAppliedSchemaError, R>> for Error
impl<R> From<SdkError<UpgradeAppliedSchemaError, R>> for Error
Source§fn from(err: SdkError<UpgradeAppliedSchemaError, R>) -> Self
fn from(err: SdkError<UpgradeAppliedSchemaError, R>) -> Self
Source§impl<R> From<SdkError<UpgradePublishedSchemaError, R>> for Error
impl<R> From<SdkError<UpgradePublishedSchemaError, R>> for Error
Source§fn from(err: SdkError<UpgradePublishedSchemaError, R>) -> Self
fn from(err: SdkError<UpgradePublishedSchemaError, 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<UpdateFacetError> for Error
impl From<UpdateFacetError> for Error
Source§fn from(err: UpdateFacetError) -> Self
fn from(err: UpdateFacetError) -> Self
Source§impl From<UpdateLinkAttributesError> for Error
impl From<UpdateLinkAttributesError> for Error
Source§fn from(err: UpdateLinkAttributesError) -> Self
fn from(err: UpdateLinkAttributesError) -> Self
Source§impl From<UpdateObjectAttributesError> for Error
impl From<UpdateObjectAttributesError> for Error
Source§fn from(err: UpdateObjectAttributesError) -> Self
fn from(err: UpdateObjectAttributesError) -> Self
Source§impl From<UpdateSchemaError> for Error
impl From<UpdateSchemaError> for Error
Source§fn from(err: UpdateSchemaError) -> Self
fn from(err: UpdateSchemaError) -> Self
Source§impl From<UpdateTypedLinkFacetError> for Error
impl From<UpdateTypedLinkFacetError> for Error
Source§fn from(err: UpdateTypedLinkFacetError) -> Self
fn from(err: UpdateTypedLinkFacetError) -> Self
Source§impl From<UpgradeAppliedSchemaError> for Error
impl From<UpgradeAppliedSchemaError> for Error
Source§fn from(err: UpgradeAppliedSchemaError) -> Self
fn from(err: UpgradeAppliedSchemaError) -> Self
Source§impl From<UpgradePublishedSchemaError> for Error
impl From<UpgradePublishedSchemaError> for Error
Source§fn from(err: UpgradePublishedSchemaError) -> Self
fn from(err: UpgradePublishedSchemaError) -> 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>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
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);