pub trait AsyncTryFrom<T>: Sized {
type Error;
// Required method
fn try_from(
value: T,
) -> impl Future<Output = Result<Self, Self::Error>> + Send;
}Available on crate feature
_api only.Required Associated Types§
Required Methods§
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<CreateTranscriptionRequest> for Form
Available on crate feature audio-types only.
impl AsyncTryFrom<CreateTranscriptionRequest> for Form
Available on crate feature
audio-types only.type Error = OpenAIError
async fn try_from( request: CreateTranscriptionRequest, ) -> Result<Self, Self::Error>
Source§impl AsyncTryFrom<CreateTranslationRequest> for Form
Available on crate feature audio-types only.
impl AsyncTryFrom<CreateTranslationRequest> for Form
Available on crate feature
audio-types only.type Error = OpenAIError
async fn try_from( request: CreateTranslationRequest, ) -> Result<Self, Self::Error>
Source§impl AsyncTryFrom<CreateContainerFileRequest> for Form
Available on crate feature container-types only.
impl AsyncTryFrom<CreateContainerFileRequest> for Form
Available on crate feature
container-types only.type Error = OpenAIError
async fn try_from( request: CreateContainerFileRequest, ) -> Result<Self, Self::Error>
Source§impl AsyncTryFrom<CreateFileRequest> for Form
Available on crate feature file-types only.
impl AsyncTryFrom<CreateFileRequest> for Form
Available on crate feature
file-types only.type Error = OpenAIError
async fn try_from(request: CreateFileRequest) -> Result<Self, Self::Error>
Source§impl AsyncTryFrom<CreateImageEditRequest> for Form
Available on crate feature image-types only.
impl AsyncTryFrom<CreateImageEditRequest> for Form
Available on crate feature
image-types only.type Error = OpenAIError
async fn try_from(request: CreateImageEditRequest) -> Result<Self, Self::Error>
Source§impl AsyncTryFrom<CreateImageVariationRequest> for Form
Available on crate feature image-types only.
impl AsyncTryFrom<CreateImageVariationRequest> for Form
Available on crate feature
image-types only.type Error = OpenAIError
async fn try_from( request: CreateImageVariationRequest, ) -> Result<Self, Self::Error>
Source§impl AsyncTryFrom<RealtimeCallCreateRequest> for Form
Available on crate feature realtime-types only.
impl AsyncTryFrom<RealtimeCallCreateRequest> for Form
Available on crate feature
realtime-types only.Source§type Error = OpenAIError
type Error = OpenAIError
Available on crate feature
_api only.Source§impl AsyncTryFrom<AddUploadPartRequest> for Form
Available on crate feature upload-types only.
impl AsyncTryFrom<AddUploadPartRequest> for Form
Available on crate feature
upload-types only.type Error = OpenAIError
async fn try_from(request: AddUploadPartRequest) -> Result<Self, Self::Error>
Source§impl AsyncTryFrom<CreateVideoRequest> for Form
Available on crate feature video-types only.
impl AsyncTryFrom<CreateVideoRequest> for Form
Available on crate feature
video-types only.