pub struct ImageProperties {
pub angle: Option<f32>,
pub brightness: Option<f32>,
pub content_uri: Option<String>,
pub contrast: Option<f32>,
pub crop_properties: Option<CropProperties>,
pub source_uri: Option<String>,
pub transparency: Option<f32>,
}
Expand description
The properties of an image.
This type is not used in any activity, and only used as part of another schema.
Fields§
§angle: Option<f32>
The clockwise rotation angle of the image, in radians.
brightness: Option<f32>
The brightness effect of the image. The value should be in the interval [-1.0, 1.0], where 0 means no effect.
content_uri: Option<String>
A URI to the image with a default lifetime of 30 minutes. This URI is tagged with the account of the requester. Anyone with the URI effectively accesses the image as the original requester. Access to the image may be lost if the document’s sharing settings change.
contrast: Option<f32>
The contrast effect of the image. The value should be in the interval [-1.0, 1.0], where 0 means no effect.
crop_properties: Option<CropProperties>
The crop properties of the image.
source_uri: Option<String>
The source URI is the URI used to insert the image. The source URI can be empty.
transparency: Option<f32>
The transparency effect of the image. The value should be in the interval [0.0, 1.0], where 0 means no effect and 1 means transparent.
Trait Implementations§
Source§impl Clone for ImageProperties
impl Clone for ImageProperties
Source§fn clone(&self) -> ImageProperties
fn clone(&self) -> ImageProperties
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ImageProperties
impl Debug for ImageProperties
Source§impl Default for ImageProperties
impl Default for ImageProperties
Source§fn default() -> ImageProperties
fn default() -> ImageProperties
Source§impl<'de> Deserialize<'de> for ImageProperties
impl<'de> Deserialize<'de> for ImageProperties
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>,
Source§impl Serialize for ImageProperties
impl Serialize for ImageProperties
impl Part for ImageProperties
Auto Trait Implementations§
impl Freeze for ImageProperties
impl RefUnwindSafe for ImageProperties
impl Send for ImageProperties
impl Sync for ImageProperties
impl Unpin for ImageProperties
impl UnwindSafe for ImageProperties
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