pub struct User {
pub id: String,
pub username: Option<String>,
pub phone_number: Option<String>,
pub email: Option<String>,
pub full_name: Option<String>,
pub img_url: Option<String>,
pub cannot_message: Option<bool>,
pub is_self: Option<bool>,
}Expand description
A user in the Beeper system
Fields§
§id: StringUser ID
username: Option<String>Human-readable handle
phone_number: Option<String>User’s phone number in E.164 format
email: Option<String>User’s email address
full_name: Option<String>Display name
img_url: Option<String>Avatar image URL
cannot_message: Option<bool>True if Beeper cannot initiate messages to this user
is_self: Option<bool>True if this is the current user
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
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
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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