Struct google_drive2::api::About

source ·
pub struct About {
Show 28 fields pub additional_role_info: Option<Vec<AboutAdditionalRoleInfo>>, pub can_create_drives: Option<bool>, pub can_create_team_drives: Option<bool>, pub domain_sharing_policy: Option<String>, pub drive_themes: Option<Vec<AboutDriveThemes>>, pub etag: Option<String>, pub export_formats: Option<Vec<AboutExportFormats>>, pub features: Option<Vec<AboutFeatures>>, pub folder_color_palette: Option<Vec<String>>, pub import_formats: Option<Vec<AboutImportFormats>>, pub is_current_app_installed: Option<bool>, pub kind: Option<String>, pub language_code: Option<String>, pub largest_change_id: Option<i64>, pub max_upload_sizes: Option<Vec<AboutMaxUploadSizes>>, pub name: Option<String>, pub permission_id: Option<String>, pub quota_bytes_by_service: Option<Vec<AboutQuotaBytesByService>>, pub quota_bytes_total: Option<i64>, pub quota_bytes_used: Option<i64>, pub quota_bytes_used_aggregate: Option<i64>, pub quota_bytes_used_in_trash: Option<i64>, pub quota_type: Option<String>, pub remaining_change_ids: Option<i64>, pub root_folder_id: Option<String>, pub self_link: Option<String>, pub team_drive_themes: Option<Vec<AboutTeamDriveThemes>>, pub user: Option<User>,
}
Expand description

An item with user information and settings.

§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).

Fields§

§additional_role_info: Option<Vec<AboutAdditionalRoleInfo>>

Information about supported additional roles per file type. The most specific type takes precedence.

§can_create_drives: Option<bool>

Whether the user can create shared drives.

§can_create_team_drives: Option<bool>

Deprecated: Use canCreateDrives instead.

§domain_sharing_policy: Option<String>

The domain sharing policy for the current user. Possible values are: * allowed * allowedWithWarning * incomingOnly * disallowed

§drive_themes: Option<Vec<AboutDriveThemes>>

A list of themes that are supported for shared drives.

§etag: Option<String>

The ETag of the item.

§export_formats: Option<Vec<AboutExportFormats>>

The allowable export formats.

§features: Option<Vec<AboutFeatures>>

List of additional features enabled on this account.

§folder_color_palette: Option<Vec<String>>

The palette of allowable folder colors as RGB hex strings.

§import_formats: Option<Vec<AboutImportFormats>>

The allowable import formats.

§is_current_app_installed: Option<bool>

A boolean indicating whether the authenticated app is installed by the authenticated user.

§kind: Option<String>

This is always drive#about.

§language_code: Option<String>

The user’s language or locale code, as defined by BCP 47, with some extensions from Unicode’s LDML format (http://www.unicode.org/reports/tr35/).

§largest_change_id: Option<i64>

The largest change id.

§max_upload_sizes: Option<Vec<AboutMaxUploadSizes>>

List of max upload sizes for each file type. The most specific type takes precedence.

§name: Option<String>

The name of the current user.

§permission_id: Option<String>

The current user’s ID as visible in the permissions collection.

§quota_bytes_by_service: Option<Vec<AboutQuotaBytesByService>>

The amount of storage quota used by different Google services.

§quota_bytes_total: Option<i64>

The total number of quota bytes. This is only relevant when quotaType is LIMITED.

§quota_bytes_used: Option<i64>

The number of quota bytes used by Google Drive.

§quota_bytes_used_aggregate: Option<i64>

The number of quota bytes used by all Google apps (Drive, Picasa, etc.).

§quota_bytes_used_in_trash: Option<i64>

The number of quota bytes used by trashed items.

§quota_type: Option<String>

The type of the user’s storage quota. Possible values are: * LIMITED * UNLIMITED

§remaining_change_ids: Option<i64>

The number of remaining change ids, limited to no more than 2500.

§root_folder_id: Option<String>

The id of the root folder.

§self_link: Option<String>

A link back to this item.

§team_drive_themes: Option<Vec<AboutTeamDriveThemes>>

Deprecated: Use driveThemes instead.

§user: Option<User>

The authenticated user.

Trait Implementations§

source§

impl Clone for About

source§

fn clone(&self) -> About

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for About

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for About

source§

fn default() -> About

Returns the “default value” for a type. Read more
source§

impl<'de> Deserialize<'de> for About

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for About

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
source§

impl ResponseResult for About

Auto Trait Implementations§

§

impl RefUnwindSafe for About

§

impl Send for About

§

impl Sync for About

§

impl Unpin for About

§

impl UnwindSafe for About

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,