pub struct Error {
pub message: String,
pub type: Option<ErrorType>,
pub code: i32,
pub error_subcode: Option<i32>,
pub error_user_title: Option<String>,
pub error_user_msg: Option<String>,
pub fbtrace_id: Option<String>,
/* private fields */
}Fields§
§message: String§type: Option<ErrorType>§code: i32§error_subcode: Option<i32>§error_user_title: Option<String>§error_user_msg: Option<String>§fbtrace_id: Option<String>Implementations§
Source§impl Error
impl Error
pub fn is_error_validating_access_token(&self) -> bool
pub fn is_access_token_session_has_been_invalidated(&self) -> bool
pub fn is_access_token_session_has_expired(&self) -> bool
pub fn is_access_token_session_key_is_malformed(&self) -> bool
Source§impl Error
impl Error
pub fn to_known_error_case(&self) -> Option<KnownErrorCase>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Error
impl<'de> Deserialize<'de> for Error
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 Error for Error
impl Error for Error
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 Error
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
impl UnwindSafe for Error
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