pub enum EmbeddingFailureReason {
RateLimited,
RequestRejected,
ProviderUnavailable,
Transport,
Timeout,
BlockedByNetworkPolicy,
}Expand description
Why a sent request failed, as a closed vocabulary (the wire form is
Self::as_str).
Variants§
RateLimited
RequestRejected
Transport
Timeout
BlockedByNetworkPolicy
The provider’s base_url is refused by the network policy. Nothing
was sent.
Implementations§
Trait Implementations§
Source§impl Clone for EmbeddingFailureReason
impl Clone for EmbeddingFailureReason
impl Copy for EmbeddingFailureReason
Source§impl Debug for EmbeddingFailureReason
impl Debug for EmbeddingFailureReason
Source§impl Display for EmbeddingFailureReason
impl Display for EmbeddingFailureReason
impl Eq for EmbeddingFailureReason
Source§impl PartialEq for EmbeddingFailureReason
impl PartialEq for EmbeddingFailureReason
impl StructuralPartialEq for EmbeddingFailureReason
Auto Trait Implementations§
impl Freeze for EmbeddingFailureReason
impl RefUnwindSafe for EmbeddingFailureReason
impl Send for EmbeddingFailureReason
impl Sync for EmbeddingFailureReason
impl Unpin for EmbeddingFailureReason
impl UnsafeUnpin for EmbeddingFailureReason
impl UnwindSafe for EmbeddingFailureReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.