pub struct UnathorizedResponse {
pub success: Option<bool>,
pub error: Option<String>,
pub error_code: Option<i32>,
}
Fields§
§success: Option<bool>
If the response is successful or not
error: Option<String>
The error message
error_code: Option<i32>
The response error code
Implementations§
Source§impl UnathorizedResponse
impl UnathorizedResponse
pub fn new() -> UnathorizedResponse
Trait Implementations§
Source§impl Clone for UnathorizedResponse
impl Clone for UnathorizedResponse
Source§fn clone(&self) -> UnathorizedResponse
fn clone(&self) -> UnathorizedResponse
Returns a duplicate of the value. Read more
1.0.0 · 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 UnathorizedResponse
impl Debug for UnathorizedResponse
Source§impl<'de> Deserialize<'de> for UnathorizedResponse
impl<'de> Deserialize<'de> for UnathorizedResponse
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 PartialEq for UnathorizedResponse
impl PartialEq for UnathorizedResponse
Source§impl Serialize for UnathorizedResponse
impl Serialize for UnathorizedResponse
impl StructuralPartialEq for UnathorizedResponse
Auto Trait Implementations§
impl Freeze for UnathorizedResponse
impl RefUnwindSafe for UnathorizedResponse
impl Send for UnathorizedResponse
impl Sync for UnathorizedResponse
impl Unpin for UnathorizedResponse
impl UnwindSafe for UnathorizedResponse
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