pub struct DeleteCollection { /* private fields */ }Expand description
Fluent builder constructing a request to DeleteCollection.
Deletes the specified collection. Note that this operation removes all faces in the collection. For an example, see Deleting a collection.
This operation requires permissions to perform the rekognition:DeleteCollection action.
Implementations
sourceimpl DeleteCollection
impl DeleteCollection
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<DeleteCollection, AwsResponseRetryClassifier>, SdkError<DeleteCollectionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<DeleteCollection, AwsResponseRetryClassifier>, SdkError<DeleteCollectionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<DeleteCollectionOutput, SdkError<DeleteCollectionError>>
pub async fn send(
self
) -> Result<DeleteCollectionOutput, SdkError<DeleteCollectionError>>
Sends the request and returns the response.
If an error occurs, an SdkError will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn collection_id(self, input: impl Into<String>) -> Self
pub fn collection_id(self, input: impl Into<String>) -> Self
ID of the collection to delete.
sourcepub fn set_collection_id(self, input: Option<String>) -> Self
pub fn set_collection_id(self, input: Option<String>) -> Self
ID of the collection to delete.
Trait Implementations
sourceimpl Clone for DeleteCollection
impl Clone for DeleteCollection
sourcefn clone(&self) -> DeleteCollection
fn clone(&self) -> DeleteCollection
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more