pub enum Status {
InvalidArgument,
FailedPrecondition,
PermissionDenied,
NotFound,
ResourceExhausted,
Internal,
Unavailable,
DeadlineExceeded,
}
Expand description
Common backend error codes you may encounter
Use the API Reference for troubleshooting steps
Variants§
InvalidArgument
The request body is malformed
FailedPrecondition
Gemini API free tier is not available in your country. Please enable billing on your project in Google AI Studio.
PermissionDenied
Your API key doesn’t have the required permissions.
NotFound
The requested resource wasn’t found.
ResourceExhausted
You’ve exceeded the rate limit.
Internal
An unexpected error occurred on Google’s side.
The service may be temporarily overloaded or down.
DeadlineExceeded
The service is unable to finish processing within the deadline.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Status
impl<'de> Deserialize<'de> for Status
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Status
impl RefUnwindSafe for Status
impl Send for Status
impl Sync for Status
impl Unpin for Status
impl UnwindSafe for Status
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