Struct gsuite_api::types::UserPhoto
source · pub struct UserPhoto {
pub etag: String,
pub height: i64,
pub id: String,
pub kind: String,
pub mime_type: String,
pub photo_data: Option<Bytes>,
pub primary_email: String,
pub width: i64,
}Fields
etag: Stringheight: i64The unique ID of the ASP.
id: Stringkind: Stringmime_type: Stringphoto_data: Option<Bytes>The user photo’s upload data in web-safe Base64 format in bytes. This means: * The slash (/) character is replaced with the underscore (_) character. * The plus sign (+) character is replaced with the hyphen (-) character. * The equals sign (=) character is replaced with the asterisk (*). * For padding, the period (.) character is used instead of the RFC-4648 baseURL definition which uses the equals sign (=) for padding. This is done to simplify URL-parsing. * Whatever the size of the photo being uploaded, the API downsizes it to 96x96 pixels.
primary_email: Stringwidth: i64The unique ID of the ASP.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for UserPhoto
impl<'de> Deserialize<'de> for UserPhoto
sourcefn 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
sourceimpl JsonSchema for UserPhoto
impl JsonSchema for UserPhoto
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for UserPhoto
Auto Trait Implementations
impl RefUnwindSafe for UserPhoto
impl Send for UserPhoto
impl Sync for UserPhoto
impl Unpin for UserPhoto
impl UnwindSafe for UserPhoto
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more