Struct google_drive::TeamDriveBackgroundImageFile [−][src]
pub struct TeamDriveBackgroundImageFile { pub width: Option<f32>, pub y_coordinate: Option<f32>, pub id: Option<String>, pub x_coordinate: Option<f32>, }
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.
This type is not used in any activity, and only used as part of another schema.
Fields
width: Option<f32>
The width of the cropped image in the closed range of 0 to 1. This value represents the width of the cropped image divided by the width of the entire image. The height is computed by applying a width to height aspect ratio of 80 to 9. The resulting image must be at least 1280 pixels wide and 144 pixels high.
y_coordinate: Option<f32>
The Y coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the vertical distance from the top side of the entire image to the top side of the cropping area divided by the height of the entire image.
id: Option<String>
The ID of an image file in Drive to use for the background image.
x_coordinate: Option<f32>
The X coordinate of the upper left corner of the cropping area in the background image. This is a value in the closed range of 0 to 1. This value represents the horizontal distance from the left side of the entire image to the left side of the cropping area divided by the width of the entire image.
Trait Implementations
impl Clone for TeamDriveBackgroundImageFile
[src]
impl Clone for TeamDriveBackgroundImageFile
[src]fn clone(&self) -> TeamDriveBackgroundImageFile
[src]
fn clone(&self) -> TeamDriveBackgroundImageFile
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for TeamDriveBackgroundImageFile
[src]
impl Debug for TeamDriveBackgroundImageFile
[src]impl Default for TeamDriveBackgroundImageFile
[src]
impl Default for TeamDriveBackgroundImageFile
[src]fn default() -> TeamDriveBackgroundImageFile
[src]
fn default() -> TeamDriveBackgroundImageFile
[src]Returns the “default value” for a type. Read more
impl<'de> Deserialize<'de> for TeamDriveBackgroundImageFile
[src]
impl<'de> Deserialize<'de> for TeamDriveBackgroundImageFile
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for TeamDriveBackgroundImageFile
impl Send for TeamDriveBackgroundImageFile
impl Sync for TeamDriveBackgroundImageFile
impl Unpin for TeamDriveBackgroundImageFile
impl UnwindSafe for TeamDriveBackgroundImageFile
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Instrument for T
[src]
impl<T> Instrument for T
[src]fn instrument(self, span: Span) -> Instrumented<Self>
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
fn in_current_span(self) -> Instrumented<Self>
[src]
fn in_current_span(self) -> Instrumented<Self>
[src]impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,