kind_openai::error

Type Alias OpenAIResult

Source
pub type OpenAIResult<T> = Result<T, OpenAIError>;

Aliased Type§

enum OpenAIResult<T> {
    Ok(T),
    Err(OpenAIError),
}

Variants§

§1.0.0

Ok(T)

Contains the success value

§1.0.0

Err(OpenAIError)

Contains the error value

Trait Implementations§

Source§

impl<T> From<UnifiedChatCompletionResponseMessage<T>> for OpenAIResult<T>

Source§

fn from(value: UnifiedChatCompletionResponseMessage<T>) -> Self

Converts to this type from the input type.