Struct google_chat1::api::Image [−][src]
pub struct Image {
pub aspect_ratio: Option<f64>,
pub image_url: Option<String>,
pub on_click: Option<OnClick>,
}
Expand description
An image that is specified by a URL and can have an onclick action.
This type is not used in any activity, and only used as part of another schema.
Fields
aspect_ratio: Option<f64>
The aspect ratio of this image (width/height). This field allows clients to reserve the right height for the image while waiting for it to load. It’s not meant to override the native aspect ratio of the image. If unset, the server fills it by prefetching the image.
image_url: Option<String>
The URL of the image.
on_click: Option<OnClick>
The onclick action.
Trait Implementations
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Image
impl UnwindSafe for Image
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more