Error

Enum Error 

Source
#[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
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

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)

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

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

Trait Implementations§

Source§

impl Debug for Error

Source§

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

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

impl Display for Error

Source§

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

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

impl Error for Error

Source§

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

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

fn description(&self) -> &str

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

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

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

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

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

impl From<AddFacetToObjectError> for Error

Source§

fn from(err: AddFacetToObjectError) -> Self

Converts to this type from the input type.
Source§

impl From<ApplySchemaError> for Error

Source§

fn from(err: ApplySchemaError) -> Self

Converts to this type from the input type.
Source§

impl From<AttachObjectError> for Error

Source§

fn from(err: AttachObjectError) -> Self

Converts to this type from the input type.
Source§

impl From<AttachPolicyError> for Error

Source§

fn from(err: AttachPolicyError) -> Self

Converts to this type from the input type.
Source§

impl From<AttachToIndexError> for Error

Source§

fn from(err: AttachToIndexError) -> Self

Converts to this type from the input type.
Source§

impl From<AttachTypedLinkError> for Error

Source§

fn from(err: AttachTypedLinkError) -> Self

Converts to this type from the input type.
Source§

impl From<BatchReadError> for Error

Source§

fn from(err: BatchReadError) -> Self

Converts to this type from the input type.
Source§

impl From<BatchWriteError> for Error

Source§

fn from(err: BatchWriteError) -> Self

Converts to this type from the input type.
Source§

impl From<BuildError> for Error

Source§

fn from(value: BuildError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateDirectoryError> for Error

Source§

fn from(err: CreateDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateFacetError> for Error

Source§

fn from(err: CreateFacetError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateIndexError> for Error

Source§

fn from(err: CreateIndexError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateObjectError> for Error

Source§

fn from(err: CreateObjectError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateSchemaError> for Error

Source§

fn from(err: CreateSchemaError) -> Self

Converts to this type from the input type.
Source§

impl From<CreateTypedLinkFacetError> for Error

Source§

fn from(err: CreateTypedLinkFacetError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteDirectoryError> for Error

Source§

fn from(err: DeleteDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteFacetError> for Error

Source§

fn from(err: DeleteFacetError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteObjectError> for Error

Source§

fn from(err: DeleteObjectError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteSchemaError> for Error

Source§

fn from(err: DeleteSchemaError) -> Self

Converts to this type from the input type.
Source§

impl From<DeleteTypedLinkFacetError> for Error

Source§

fn from(err: DeleteTypedLinkFacetError) -> Self

Converts to this type from the input type.
Source§

impl From<DetachFromIndexError> for Error

Source§

fn from(err: DetachFromIndexError) -> Self

Converts to this type from the input type.
Source§

impl From<DetachObjectError> for Error

Source§

fn from(err: DetachObjectError) -> Self

Converts to this type from the input type.
Source§

impl From<DetachPolicyError> for Error

Source§

fn from(err: DetachPolicyError) -> Self

Converts to this type from the input type.
Source§

impl From<DetachTypedLinkError> for Error

Source§

fn from(err: DetachTypedLinkError) -> Self

Converts to this type from the input type.
Source§

impl From<DisableDirectoryError> for Error

Source§

fn from(err: DisableDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<EnableDirectoryError> for Error

Source§

fn from(err: EnableDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<GetAppliedSchemaVersionError> for Error

Source§

fn from(err: GetAppliedSchemaVersionError) -> Self

Converts to this type from the input type.
Source§

impl From<GetDirectoryError> for Error

Source§

fn from(err: GetDirectoryError) -> Self

Converts to this type from the input type.
Source§

impl From<GetFacetError> for Error

Source§

fn from(err: GetFacetError) -> Self

Converts to this type from the input type.
Source§

impl From<GetLinkAttributesError> for Error

Source§

fn from(err: GetLinkAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<GetObjectAttributesError> for Error

Source§

fn from(err: GetObjectAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<GetObjectInformationError> for Error

Source§

fn from(err: GetObjectInformationError) -> Self

Converts to this type from the input type.
Source§

impl From<GetSchemaAsJsonError> for Error

Source§

fn from(err: GetSchemaAsJsonError) -> Self

Converts to this type from the input type.
Source§

impl From<GetTypedLinkFacetInformationError> for Error

Source§

fn from(err: GetTypedLinkFacetInformationError) -> Self

Converts to this type from the input type.
Source§

impl From<ListAppliedSchemaArnsError> for Error

Source§

fn from(err: ListAppliedSchemaArnsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListAttachedIndicesError> for Error

Source§

fn from(err: ListAttachedIndicesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListDevelopmentSchemaArnsError> for Error

Source§

fn from(err: ListDevelopmentSchemaArnsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListDirectoriesError> for Error

Source§

fn from(err: ListDirectoriesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListFacetAttributesError> for Error

Source§

fn from(err: ListFacetAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListFacetNamesError> for Error

Source§

fn from(err: ListFacetNamesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListIncomingTypedLinksError> for Error

Source§

fn from(err: ListIncomingTypedLinksError) -> Self

Converts to this type from the input type.
Source§

impl From<ListIndexError> for Error

Source§

fn from(err: ListIndexError) -> Self

Converts to this type from the input type.
Source§

impl From<ListManagedSchemaArnsError> for Error

Source§

fn from(err: ListManagedSchemaArnsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListObjectAttributesError> for Error

Source§

fn from(err: ListObjectAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListObjectChildrenError> for Error

Source§

fn from(err: ListObjectChildrenError) -> Self

Converts to this type from the input type.
Source§

impl From<ListObjectParentPathsError> for Error

Source§

fn from(err: ListObjectParentPathsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListObjectParentsError> for Error

Source§

fn from(err: ListObjectParentsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListObjectPoliciesError> for Error

Source§

fn from(err: ListObjectPoliciesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListOutgoingTypedLinksError> for Error

Source§

fn from(err: ListOutgoingTypedLinksError) -> Self

Converts to this type from the input type.
Source§

impl From<ListPolicyAttachmentsError> for Error

Source§

fn from(err: ListPolicyAttachmentsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListPublishedSchemaArnsError> for Error

Source§

fn from(err: ListPublishedSchemaArnsError) -> Self

Converts to this type from the input type.
Source§

impl From<ListTagsForResourceError> for Error

Source§

fn from(err: ListTagsForResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<ListTypedLinkFacetAttributesError> for Error

Source§

fn from(err: ListTypedLinkFacetAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<ListTypedLinkFacetNamesError> for Error

Source§

fn from(err: ListTypedLinkFacetNamesError) -> Self

Converts to this type from the input type.
Source§

impl From<LookupPolicyError> for Error

Source§

fn from(err: LookupPolicyError) -> Self

Converts to this type from the input type.
Source§

impl From<PublishSchemaError> for Error

Source§

fn from(err: PublishSchemaError) -> Self

Converts to this type from the input type.
Source§

impl From<PutSchemaFromJsonError> for Error

Source§

fn from(err: PutSchemaFromJsonError) -> Self

Converts to this type from the input type.
Source§

impl From<RemoveFacetFromObjectError> for Error

Source§

fn from(err: RemoveFacetFromObjectError) -> Self

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

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

Source§

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

Converts to this type from the input type.
Source§

impl From<TagResourceError> for Error

Source§

fn from(err: TagResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<UntagResourceError> for Error

Source§

fn from(err: UntagResourceError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateFacetError> for Error

Source§

fn from(err: UpdateFacetError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateLinkAttributesError> for Error

Source§

fn from(err: UpdateLinkAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateObjectAttributesError> for Error

Source§

fn from(err: UpdateObjectAttributesError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateSchemaError> for Error

Source§

fn from(err: UpdateSchemaError) -> Self

Converts to this type from the input type.
Source§

impl From<UpdateTypedLinkFacetError> for Error

Source§

fn from(err: UpdateTypedLinkFacetError) -> Self

Converts to this type from the input type.
Source§

impl From<UpgradeAppliedSchemaError> for Error

Source§

fn from(err: UpgradeAppliedSchemaError) -> Self

Converts to this type from the input type.
Source§

impl From<UpgradePublishedSchemaError> for Error

Source§

fn from(err: UpgradePublishedSchemaError) -> Self

Converts to this type from the input type.
Source§

impl ProvideErrorMetadata for Error

Source§

fn meta(&self) -> &ErrorMetadata

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

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

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

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

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

impl RequestId for Error

Source§

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

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

Auto Trait Implementations§

§

impl Freeze for Error

§

impl !RefUnwindSafe for Error

§

impl Send for Error

§

impl Sync for Error

§

impl Unpin for Error

§

impl !UnwindSafe for Error

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<Unshared, Shared> IntoShared<Shared> for Unshared
where Shared: FromUnshared<Unshared>,

Source§

fn into_shared(self) -> Shared

Creates a shared type from an unshared type.
Source§

impl<T> Paint for T
where T: ?Sized,

Source§

fn fg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the foreground set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like red() and green(), which have the same functionality but are pithier.

§Example

Set foreground color to white using fg():

use yansi::{Paint, Color};

painted.fg(Color::White);

Set foreground color to white using white().

use yansi::Paint;

painted.white();
Source§

fn primary(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Primary].

§Example
println!("{}", value.primary());
Source§

fn fixed(&self, color: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Fixed].

§Example
println!("{}", value.fixed(color));
Source§

fn rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the fg() set to [Color :: Rgb].

§Example
println!("{}", value.rgb(r, g, b));
Source§

fn black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Black].

§Example
println!("{}", value.black());
Source§

fn red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Red].

§Example
println!("{}", value.red());
Source§

fn green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Green].

§Example
println!("{}", value.green());
Source§

fn yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Yellow].

§Example
println!("{}", value.yellow());
Source§

fn blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Blue].

§Example
println!("{}", value.blue());
Source§

fn magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Magenta].

§Example
println!("{}", value.magenta());
Source§

fn cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: Cyan].

§Example
println!("{}", value.cyan());
Source§

fn white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: White].

§Example
println!("{}", value.white());
Source§

fn bright_black(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlack].

§Example
println!("{}", value.bright_black());
Source§

fn bright_red(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightRed].

§Example
println!("{}", value.bright_red());
Source§

fn bright_green(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightGreen].

§Example
println!("{}", value.bright_green());
Source§

fn bright_yellow(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightYellow].

§Example
println!("{}", value.bright_yellow());
Source§

fn bright_blue(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightBlue].

§Example
println!("{}", value.bright_blue());
Source§

fn bright_magenta(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.bright_magenta());
Source§

fn bright_cyan(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightCyan].

§Example
println!("{}", value.bright_cyan());
Source§

fn bright_white(&self) -> Painted<&T>

Returns self with the fg() set to [Color :: BrightWhite].

§Example
println!("{}", value.bright_white());
Source§

fn bg(&self, value: Color) -> Painted<&T>

Returns a styled value derived from self with the background set to value.

This method should be used rarely. Instead, prefer to use color-specific builder methods like on_red() and on_green(), which have the same functionality but are pithier.

§Example

Set background color to red using fg():

use yansi::{Paint, Color};

painted.bg(Color::Red);

Set background color to red using on_red().

use yansi::Paint;

painted.on_red();
Source§

fn on_primary(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Primary].

§Example
println!("{}", value.on_primary());
Source§

fn on_fixed(&self, color: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Fixed].

§Example
println!("{}", value.on_fixed(color));
Source§

fn on_rgb(&self, r: u8, g: u8, b: u8) -> Painted<&T>

Returns self with the bg() set to [Color :: Rgb].

§Example
println!("{}", value.on_rgb(r, g, b));
Source§

fn on_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Black].

§Example
println!("{}", value.on_black());
Source§

fn on_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Red].

§Example
println!("{}", value.on_red());
Source§

fn on_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Green].

§Example
println!("{}", value.on_green());
Source§

fn on_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Yellow].

§Example
println!("{}", value.on_yellow());
Source§

fn on_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Blue].

§Example
println!("{}", value.on_blue());
Source§

fn on_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Magenta].

§Example
println!("{}", value.on_magenta());
Source§

fn on_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: Cyan].

§Example
println!("{}", value.on_cyan());
Source§

fn on_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: White].

§Example
println!("{}", value.on_white());
Source§

fn on_bright_black(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlack].

§Example
println!("{}", value.on_bright_black());
Source§

fn on_bright_red(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightRed].

§Example
println!("{}", value.on_bright_red());
Source§

fn on_bright_green(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightGreen].

§Example
println!("{}", value.on_bright_green());
Source§

fn on_bright_yellow(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightYellow].

§Example
println!("{}", value.on_bright_yellow());
Source§

fn on_bright_blue(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightBlue].

§Example
println!("{}", value.on_bright_blue());
Source§

fn on_bright_magenta(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightMagenta].

§Example
println!("{}", value.on_bright_magenta());
Source§

fn on_bright_cyan(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightCyan].

§Example
println!("{}", value.on_bright_cyan());
Source§

fn on_bright_white(&self) -> Painted<&T>

Returns self with the bg() set to [Color :: BrightWhite].

§Example
println!("{}", value.on_bright_white());
Source§

fn attr(&self, value: Attribute) -> Painted<&T>

Enables the styling Attribute value.

This method should be used rarely. Instead, prefer to use attribute-specific builder methods like bold() and underline(), which have the same functionality but are pithier.

§Example

Make text bold using attr():

use yansi::{Paint, Attribute};

painted.attr(Attribute::Bold);

Make text bold using using bold().

use yansi::Paint;

painted.bold();
Source§

fn bold(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Bold].

§Example
println!("{}", value.bold());
Source§

fn dim(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Dim].

§Example
println!("{}", value.dim());
Source§

fn italic(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Italic].

§Example
println!("{}", value.italic());
Source§

fn underline(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Underline].

§Example
println!("{}", value.underline());

Returns self with the attr() set to [Attribute :: Blink].

§Example
println!("{}", value.blink());

Returns self with the attr() set to [Attribute :: RapidBlink].

§Example
println!("{}", value.rapid_blink());
Source§

fn invert(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Invert].

§Example
println!("{}", value.invert());
Source§

fn conceal(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Conceal].

§Example
println!("{}", value.conceal());
Source§

fn strike(&self) -> Painted<&T>

Returns self with the attr() set to [Attribute :: Strike].

§Example
println!("{}", value.strike());
Source§

fn quirk(&self, value: Quirk) -> Painted<&T>

Enables the yansi Quirk value.

This method should be used rarely. Instead, prefer to use quirk-specific builder methods like mask() and wrap(), which have the same functionality but are pithier.

§Example

Enable wrapping using .quirk():

use yansi::{Paint, Quirk};

painted.quirk(Quirk::Wrap);

Enable wrapping using wrap().

use yansi::Paint;

painted.wrap();
Source§

fn mask(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Mask].

§Example
println!("{}", value.mask());
Source§

fn wrap(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Wrap].

§Example
println!("{}", value.wrap());
Source§

fn linger(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Linger].

§Example
println!("{}", value.linger());
Source§

fn clear(&self) -> Painted<&T>

👎Deprecated since 1.0.1: renamed to resetting() due to conflicts with Vec::clear(). The clear() method will be removed in a future release.

Returns self with the quirk() set to [Quirk :: Clear].

§Example
println!("{}", value.clear());
Source§

fn resetting(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Resetting].

§Example
println!("{}", value.resetting());
Source§

fn bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: Bright].

§Example
println!("{}", value.bright());
Source§

fn on_bright(&self) -> Painted<&T>

Returns self with the quirk() set to [Quirk :: OnBright].

§Example
println!("{}", value.on_bright());
Source§

fn whenever(&self, value: Condition) -> Painted<&T>

Conditionally enable styling based on whether the Condition value applies. Replaces any previous condition.

See the crate level docs for more details.

§Example

Enable styling painted only when both stdout and stderr are TTYs:

use yansi::{Paint, Condition};

painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);
Source§

fn new(self) -> Painted<Self>
where Self: Sized,

Create a new Painted with a default Style. Read more
Source§

fn paint<S>(&self, style: S) -> Painted<&Self>
where S: Into<Style>,

Apply a style wholesale to self. Any previous style is replaced. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

impl<T> ErasedDestructor for T
where T: 'static,