Struct apollo_client::errors::ApolloResponseError
source · pub struct ApolloResponseError {
pub status: StatusCode,
pub body: String,
}
Expand description
Apollo api response error, when http status is not success.
Fields§
§status: StatusCode
Http response status.
body: String
Http response body, mainly the error reason.
Trait Implementations§
source§impl Debug for ApolloResponseError
impl Debug for ApolloResponseError
source§impl Display for ApolloResponseError
impl Display for ApolloResponseError
source§impl Error for ApolloResponseError
impl Error for ApolloResponseError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ApolloResponseError> for ApolloClientError
impl From<ApolloResponseError> for ApolloClientError
source§fn from(source: ApolloResponseError) -> Self
fn from(source: ApolloResponseError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl RefUnwindSafe for ApolloResponseError
impl Send for ApolloResponseError
impl Sync for ApolloResponseError
impl Unpin for ApolloResponseError
impl UnwindSafe for ApolloResponseError
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