pub enum ModelFailureCode {
InvalidRequest,
ContextOverflow,
Authentication,
PermissionDenied,
RateLimited,
Unavailable,
Transport,
MalformedResponse,
Cancelled,
Internal,
}Expand description
Stable provider-neutral model failure classification.
Variants§
InvalidRequest
Request failed provider-neutral validation.
ContextOverflow
Prompt and requested output exceed model context.
Authentication
Provider credentials are missing or invalid.
PermissionDenied
Credentials are valid but operation is not permitted.
RateLimited
Provider rate limit rejected the operation.
Provider or selected model is temporarily unavailable.
Transport
Network or transport failed.
MalformedResponse
Provider response could not be normalized safely.
Cancelled
Operation was cooperatively cancelled.
Internal
Unexpected adapter/runtime failure.
Implementations§
Trait Implementations§
Source§impl Clone for ModelFailureCode
impl Clone for ModelFailureCode
Source§fn clone(&self) -> ModelFailureCode
fn clone(&self) -> ModelFailureCode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ModelFailureCode
Source§impl Debug for ModelFailureCode
impl Debug for ModelFailureCode
impl Eq for ModelFailureCode
Source§impl PartialEq for ModelFailureCode
impl PartialEq for ModelFailureCode
impl StructuralPartialEq for ModelFailureCode
Auto Trait Implementations§
impl Freeze for ModelFailureCode
impl RefUnwindSafe for ModelFailureCode
impl Send for ModelFailureCode
impl Sync for ModelFailureCode
impl Unpin for ModelFailureCode
impl UnsafeUnpin for ModelFailureCode
impl UnwindSafe for ModelFailureCode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more