pub struct CurrentUser {Show 13 fields
pub id: u64,
pub name: Option<String>,
pub sortable_name: Option<String>,
pub short_name: Option<String>,
pub sis_user_id: Option<String>,
pub login_id: Option<String>,
pub email: Option<String>,
pub avatar_url: Option<String>,
pub locale: Option<String>,
pub last_login: Option<DateTime<Utc>>,
pub time_zone: Option<String>,
pub bio: Option<String>,
pub effective_locale: Option<String>,
}Expand description
The currently authenticated user (extends User with additional fields).
Fields§
§id: u64§name: Option<String>§sortable_name: Option<String>§short_name: Option<String>§sis_user_id: Option<String>§login_id: Option<String>§email: Option<String>§avatar_url: Option<String>§locale: Option<String>§last_login: Option<DateTime<Utc>>§time_zone: Option<String>§bio: Option<String>§effective_locale: Option<String>Trait Implementations§
Source§impl Clone for CurrentUser
impl Clone for CurrentUser
Source§fn clone(&self) -> CurrentUser
fn clone(&self) -> CurrentUser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CurrentUser
impl Debug for CurrentUser
Source§impl<'de> Deserialize<'de> for CurrentUser
impl<'de> Deserialize<'de> for CurrentUser
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 CurrentUser
impl RefUnwindSafe for CurrentUser
impl Send for CurrentUser
impl Sync for CurrentUser
impl Unpin for CurrentUser
impl UnsafeUnpin for CurrentUser
impl UnwindSafe for CurrentUser
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