AsyncTryFrom

Trait AsyncTryFrom 

Source
pub trait AsyncTryFrom<T>: Sized {
    type Error;

    // Required method
    fn try_from(
        value: T,
    ) -> impl Future<Output = Result<Self, Self::Error>> + Send;
}

Required Associated Typesยง

Source

type Error

The type returned in the event of a conversion error.

Required Methodsยง

Source

fn try_from(value: T) -> impl Future<Output = Result<Self, Self::Error>> + Send

Performs the conversion.

Dyn Compatibilityยง

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Typesยง

Sourceยง

impl AsyncTryFrom<AddUploadPartRequest> for Form

Sourceยง

impl AsyncTryFrom<CreateFileRequest> for Form

Sourceยง

impl AsyncTryFrom<CreateImageEditRequest> for Form

Sourceยง

impl AsyncTryFrom<CreateImageVariationRequest> for Form

Sourceยง

impl AsyncTryFrom<CreateTranscriptionRequest> for Form

Sourceยง

impl AsyncTryFrom<CreateTranslationRequest> for Form

Implementorsยง