pub struct UserEntity {
pub user_id: Option<i32>,
pub username: Option<String>,
}Fields§
§user_id: Option<i32>The ID of the user.
username: Option<String>The name of the user.
Implementations§
Source§impl UserEntity
impl UserEntity
pub fn new() -> UserEntity
Trait Implementations§
Source§impl Clone for UserEntity
impl Clone for UserEntity
Source§fn clone(&self) -> UserEntity
fn clone(&self) -> UserEntity
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 UserEntity
impl Debug for UserEntity
Source§impl Default for UserEntity
impl Default for UserEntity
Source§fn default() -> UserEntity
fn default() -> UserEntity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserEntity
impl<'de> Deserialize<'de> for UserEntity
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 UserEntity
impl PartialEq for UserEntity
Source§impl Serialize for UserEntity
impl Serialize for UserEntity
impl StructuralPartialEq for UserEntity
Auto Trait Implementations§
impl Freeze for UserEntity
impl RefUnwindSafe for UserEntity
impl Send for UserEntity
impl Sync for UserEntity
impl Unpin for UserEntity
impl UnwindSafe for UserEntity
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