pub struct TeamDrive {
pub background_image_file: Option<TeamDriveBackgroundImageFile>,
pub background_image_link: Option<String>,
pub capabilities: Option<TeamDriveCapabilities>,
pub color_rgb: Option<String>,
pub created_time: Option<String>,
pub id: Option<String>,
pub kind: Option<String>,
pub name: Option<String>,
pub org_unit_id: Option<String>,
pub restrictions: Option<TeamDriveRestrictions>,
pub theme_id: Option<String>,
}Expand description
Deprecated: use the drive collection instead.
§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).
- create teamdrives (request|response)
- get teamdrives (response)
- update teamdrives (request|response)
Fields§
§background_image_file: Option<TeamDriveBackgroundImageFile>An image file and cropping parameters from which a background image for this Team Drive is set. This is a write only field; it can only be set on drive.teamdrives.update requests that don’t set themeId. When specified, all fields of the backgroundImageFile must be set.
background_image_link: Option<String>A short-lived link to this Team Drive’s background image.
capabilities: Option<TeamDriveCapabilities>Capabilities the current user has on this Team Drive.
color_rgb: Option<String>The color of this Team Drive as an RGB hex string. It can only be set on a drive.teamdrives.update request that does not set themeId.
created_time: Option<String>The time at which the Team Drive was created (RFC 3339 date-time).
id: Option<String>The ID of this Team Drive which is also the ID of the top level folder of this Team Drive.
kind: Option<String>Identifies what kind of resource this is. Value: the fixed string “drive#teamDrive”.
name: Option<String>The name of this Team Drive.
org_unit_id: Option<String>The organizational unit of this shared drive. This field is only populated on drives.list responses when the useDomainAdminAccess parameter is set to true.
restrictions: Option<TeamDriveRestrictions>A set of restrictions that apply to this Team Drive or items inside this Team Drive.
theme_id: Option<String>The ID of the theme from which the background image and color will be set. The set of possible teamDriveThemes can be retrieved from a drive.about.get response. When not specified on a drive.teamdrives.create request, a random theme is chosen from which the background image and color are set. This is a write-only field; it can only be set on requests that don’t set colorRgb or backgroundImageFile.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TeamDrive
impl<'de> Deserialize<'de> for TeamDrive
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>,
impl RequestValue for TeamDrive
impl Resource for TeamDrive
impl ResponseResult for TeamDrive
Auto Trait Implementations§
impl Freeze for TeamDrive
impl RefUnwindSafe for TeamDrive
impl Send for TeamDrive
impl Sync for TeamDrive
impl Unpin for TeamDrive
impl UnwindSafe for TeamDrive
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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