pub struct UserPhoto {
pub mime_type: Option<String>,
pub kind: Option<String>,
pub photo_data: Option<String>,
pub height: Option<i32>,
pub width: Option<i32>,
pub etag: Option<String>,
pub primary_email: Option<String>,
pub id: Option<String>,
}Expand description
JSON template for Photo object in Directory API.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- photos update users (request|response)
- photos patch users (request|response)
- photos get users (response)
Fields§
§mime_type: Option<String>Mime Type of the photo
kind: Option<String>Kind of resource this is.
photo_data: Option<String>Base64 encoded photo data
height: Option<i32>Height in pixels of the photo
width: Option<i32>Width in pixels of the photo
etag: Option<String>ETag of the resource.
primary_email: Option<String>Primary email of User (Read-only)
id: Option<String>Unique identifier of User (Read-only)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserPhoto
impl<'de> Deserialize<'de> for UserPhoto
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
impl RequestValue for UserPhoto
impl ResponseResult for UserPhoto
Auto Trait Implementations§
impl Freeze for UserPhoto
impl RefUnwindSafe for UserPhoto
impl Send for UserPhoto
impl Sync for UserPhoto
impl Unpin for UserPhoto
impl UnwindSafe for UserPhoto
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§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