pub struct UserDataWithId {
pub id: Option<i32>,
pub name: Option<String>,
pub email: Option<String>,
pub has_pic: Option<i32>,
pub pic_hash: Option<Option<String>>,
pub active_flag: Option<bool>,
}Fields§
§id: Option<i32>The ID of the user
name: Option<String>The name of the user
email: Option<String>The email of the user
has_pic: Option<i32>Whether the user has picture or not. 0 = No picture, 1 = Has picture.
pic_hash: Option<Option<String>>The user picture hash
active_flag: Option<bool>Whether the user is active or not
Implementations§
Source§impl UserDataWithId
impl UserDataWithId
pub fn new() -> UserDataWithId
Trait Implementations§
Source§impl Clone for UserDataWithId
impl Clone for UserDataWithId
Source§fn clone(&self) -> UserDataWithId
fn clone(&self) -> UserDataWithId
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 UserDataWithId
impl Debug for UserDataWithId
Source§impl<'de> Deserialize<'de> for UserDataWithId
impl<'de> Deserialize<'de> for UserDataWithId
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 UserDataWithId
impl PartialEq for UserDataWithId
Source§impl Serialize for UserDataWithId
impl Serialize for UserDataWithId
impl StructuralPartialEq for UserDataWithId
Auto Trait Implementations§
impl Freeze for UserDataWithId
impl RefUnwindSafe for UserDataWithId
impl Send for UserDataWithId
impl Sync for UserDataWithId
impl Unpin for UserDataWithId
impl UnwindSafe for UserDataWithId
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