pub enum GoogleApiError {
Connection(String),
JsonParse(String),
Response(u16, String),
}Variants§
Connection(String)
ネットワークレベルの失敗(接続不可、タイムアウトなど)
JsonParse(String)
レスポンスボディのJSONパース失敗
Response(u16, String)
APIが非2xxステータスを返した場合(ステータスコードとレスポンスボディ)
Trait Implementations§
Source§impl Clone for GoogleApiError
impl Clone for GoogleApiError
Source§fn clone(&self) -> GoogleApiError
fn clone(&self) -> GoogleApiError
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 moreSource§impl Debug for GoogleApiError
impl Debug for GoogleApiError
Source§impl Display for GoogleApiError
impl Display for GoogleApiError
Source§impl Error for GoogleApiError
impl Error for GoogleApiError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for GoogleApiError
impl RefUnwindSafe for GoogleApiError
impl Send for GoogleApiError
impl Sync for GoogleApiError
impl Unpin for GoogleApiError
impl UnsafeUnpin for GoogleApiError
impl UnwindSafe for GoogleApiError
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