pub struct GeminiApiError {
pub code: i32,
pub message: String,
pub status: Option<String>,
pub details: Option<Vec<JsonObject>>,
}Expand description
Google API style error object.
Fields§
§code: i32Numeric HTTP-like status code.
message: StringHuman-readable error message.
status: Option<String>String status code such as INVALID_ARGUMENT.
details: Option<Vec<JsonObject>>Optional structured details.
Trait Implementations§
Source§impl Clone for GeminiApiError
impl Clone for GeminiApiError
Source§fn clone(&self) -> GeminiApiError
fn clone(&self) -> GeminiApiError
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 GeminiApiError
impl Debug for GeminiApiError
Source§impl<'de> Deserialize<'de> for GeminiApiError
impl<'de> Deserialize<'de> for GeminiApiError
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
Source§impl PartialEq for GeminiApiError
impl PartialEq for GeminiApiError
Source§impl Serialize for GeminiApiError
impl Serialize for GeminiApiError
impl StructuralPartialEq for GeminiApiError
Auto Trait Implementations§
impl Freeze for GeminiApiError
impl RefUnwindSafe for GeminiApiError
impl Send for GeminiApiError
impl Sync for GeminiApiError
impl Unpin for GeminiApiError
impl UnsafeUnpin for GeminiApiError
impl UnwindSafe for GeminiApiError
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