pub struct GoogleError { /* private fields */ }Expand description
A raw error returned by the GCS API. This is only returned when there’s no more
specific error known to this library (e.g., server error, but not NotFound).
Implementations§
Source§impl GoogleError
impl GoogleError
Sourcepub fn status_code(&self) -> StatusCode
pub fn status_code(&self) -> StatusCode
Returns the HTTP status code associated with the Google error response.
Trait Implementations§
Source§impl Debug for GoogleError
impl Debug for GoogleError
Source§impl<'de> Deserialize<'de> for GoogleError
impl<'de> Deserialize<'de> for GoogleError
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 Display for GoogleError
impl Display for GoogleError
Source§impl Error for GoogleError
impl Error for GoogleError
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()
Source§impl From<GoogleError> for Error
impl From<GoogleError> for Error
Source§fn from(source: GoogleError) -> Self
fn from(source: GoogleError) -> Self
Converts to this type from the input type.
Source§impl From<GoogleError> for OAuthError
impl From<GoogleError> for OAuthError
Source§fn from(source: GoogleError) -> Self
fn from(source: GoogleError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for GoogleError
impl RefUnwindSafe for GoogleError
impl Send for GoogleError
impl Sync for GoogleError
impl Unpin for GoogleError
impl UnwindSafe for GoogleError
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