Struct google_chat1::Image
source · 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).
image_url: Option<String>
The URL of the image.
on_click: Option<OnClick>
The onclick action.
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
sourcefn 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
impl Part for Image
Auto Trait Implementations
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more