[−][src]Struct graph_error::GraphError
Fields
headers: Option<GraphHeaders>error_info: Stringerror_type: ErrorTypecode: u16error_message: ErrorMessageImplementations
impl GraphError[src]
pub fn new(
headers: Option<GraphHeaders>,
error_info: &str,
error_type: ErrorType,
code: u16,
error_message: ErrorMessage
) -> GraphError[src]
headers: Option<GraphHeaders>,
error_info: &str,
error_type: ErrorType,
code: u16,
error_message: ErrorMessage
) -> GraphError
pub fn is_error(status: u16) -> bool[src]
pub fn set_headers(&mut self, headers: GraphHeaders)[src]
pub fn set_error(&mut self, code: u16) -> Result<(), GraphError>[src]
pub fn set_error_message(&mut self, error_message: ErrorMessage)[src]
pub fn try_set_error_message(&mut self, msg: &str)[src]
pub fn message(&self) -> Option<String>[src]
pub fn code_property(&self) -> Option<String>[src]
pub fn inner_error(&self) -> Option<&InnerError>[src]
pub fn request_id(&self) -> Option<String>[src]
pub fn date(&self) -> Option<String>[src]
pub fn detailed_error_code(&self) -> Option<String>[src]
Trait Implementations
impl Clone for GraphError[src]
pub fn clone(&self) -> GraphError[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for GraphError[src]
impl Default for GraphError[src]
impl<'de> Deserialize<'de> for GraphError[src]
pub fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'de>,
impl Display for GraphError[src]
impl Eq for GraphError[src]
impl Error for GraphError[src]
pub fn source<'a>(&'a self) -> Option<&(dyn Error + 'static)>[src]
pub fn description(&self) -> &str[src]
pub fn backtrace(&self) -> Option<&Backtrace>[src]
pub fn cause(&self) -> Option<&dyn Error>1.0.0[src]
impl From<GraphError> for GraphFailure[src]
pub fn from(err: GraphError) -> Self[src]
impl PartialEq<GraphError> for GraphError[src]
pub fn eq(&self, other: &GraphError) -> bool[src]
pub fn ne(&self, other: &GraphError) -> bool[src]
impl Serialize for GraphError[src]
pub fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer, [src]
__S: Serializer,
impl StructuralEq for GraphError[src]
impl StructuralPartialEq for GraphError[src]
impl<'_> TryFrom<&'_ Response> for GraphError[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(value: &Response) -> Result<Self, Self::Error>[src]
impl<'_> TryFrom<&'_ Response> for GraphError[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(value: &Response) -> Result<Self, Self::Error>[src]
impl TryFrom<Response> for GraphError[src]
type Error = Error
The type returned in the event of a conversion error.
pub fn try_from(value: Response) -> Result<Self, Self::Error>[src]
impl TryFrom<u16> for GraphError[src]
Returns the matching GraphError for a u16. This method will panic with a NoneError if there is no corresponding u16 to match. Only use this method if you are sure the u16 given will match or you if the method results with a panic.
Auto Trait Implementations
impl RefUnwindSafe for GraphError
impl Send for GraphError
impl Sync for GraphError
impl Unpin for GraphError
impl UnwindSafe for GraphError
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> AsErrorSource for T where
T: 'static + Error, [src]
T: 'static + Error,
pub fn as_error_source(&self) -> &(dyn Error + 'static)[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>, [src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized, [src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool[src]
impl<T> From<T> for T[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T> Instrument for T[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>[src]
pub fn in_current_span(self) -> Instrumented<Self>[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T> ToString for T where
T: Display + ?Sized, [src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,