Struct google_appsactivity1::User
source · pub struct User {
pub photo: Option<Photo>,
pub permission_id: Option<String>,
pub is_deleted: Option<bool>,
pub is_me: Option<bool>,
pub name: Option<String>,
}Expand description
A representation of a user.
This type is not used in any activity, and only used as part of another schema.
Fields§
§photo: Option<Photo>The profile photo of the user. Not present if the user has no profile photo.
permission_id: Option<String>The permission ID associated with this user. Equivalent to the Drive API’s permission ID for this user, returned as part of the Drive Permissions resource.
is_deleted: Option<bool>A boolean which indicates whether the specified User was deleted. If true, name, photo and permission_id will be omitted.
is_me: Option<bool>Whether the user is the authenticated user.
name: Option<String>The displayable name of the user.
Trait Implementations§
source§impl Deserialize for User
impl Deserialize for User
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer,
Deserialize this value from the given Serde deserializer. Read more
impl Part for User
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more