pub struct UserServiceResponse {
pub data: Option<Box<User>>,
pub success: Option<bool>,
pub message: Option<Option<String>>,
pub response_code: Option<HttpStatusCode>,
}Fields§
§data: Option<Box<User>>§success: Option<bool>§message: Option<Option<String>>§response_code: Option<HttpStatusCode>Implementations§
Source§impl UserServiceResponse
impl UserServiceResponse
pub fn new() -> UserServiceResponse
Trait Implementations§
Source§impl Clone for UserServiceResponse
impl Clone for UserServiceResponse
Source§fn clone(&self) -> UserServiceResponse
fn clone(&self) -> UserServiceResponse
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 UserServiceResponse
impl Debug for UserServiceResponse
Source§impl Default for UserServiceResponse
impl Default for UserServiceResponse
Source§fn default() -> UserServiceResponse
fn default() -> UserServiceResponse
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserServiceResponse
impl<'de> Deserialize<'de> for UserServiceResponse
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 UserServiceResponse
impl PartialEq for UserServiceResponse
Source§impl Serialize for UserServiceResponse
impl Serialize for UserServiceResponse
impl StructuralPartialEq for UserServiceResponse
Auto Trait Implementations§
impl Freeze for UserServiceResponse
impl RefUnwindSafe for UserServiceResponse
impl Send for UserServiceResponse
impl Sync for UserServiceResponse
impl Unpin for UserServiceResponse
impl UnwindSafe for UserServiceResponse
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