pub enum AiErrorCode {
Show 16 variants
Error,
RequestError,
ResponseError,
FetchError,
SessionClosed,
InvalidContent,
ApiNotEnabled,
InvalidSchema,
NoApiKey,
NoAppId,
NoModel,
NoProjectId,
ParseFailed,
Unsupported,
InvalidArgument,
Internal,
}Expand description
Error codes exposed by the Firebase AI SDK.
Ported from packages/ai/src/types/error.ts (AIErrorCode) with the addition of the
legacy InvalidArgument and Internal variants that already existed in the Rust stub.
Variants§
Error
RequestError
ResponseError
FetchError
SessionClosed
InvalidContent
ApiNotEnabled
InvalidSchema
NoApiKey
NoAppId
NoModel
NoProjectId
ParseFailed
Unsupported
InvalidArgument
Internal
Implementations§
Trait Implementations§
Source§impl Clone for AiErrorCode
impl Clone for AiErrorCode
Source§fn clone(&self) -> AiErrorCode
fn clone(&self) -> AiErrorCode
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AiErrorCode
impl Debug for AiErrorCode
Source§impl Hash for AiErrorCode
impl Hash for AiErrorCode
Source§impl PartialEq for AiErrorCode
impl PartialEq for AiErrorCode
impl Copy for AiErrorCode
impl Eq for AiErrorCode
impl StructuralPartialEq for AiErrorCode
Auto Trait Implementations§
impl Freeze for AiErrorCode
impl RefUnwindSafe for AiErrorCode
impl Send for AiErrorCode
impl Sync for AiErrorCode
impl Unpin for AiErrorCode
impl UnwindSafe for AiErrorCode
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§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.