pub struct Image {
pub content_description: Option<LocalizedString>,
pub kind: Option<String>,
pub private_image_id: Option<String>,
pub source_uri: Option<ImageUri>,
}Expand description
Wrapping type for Google hosted images.
This type is not used in any activity, and only used as part of another schema.
Fields§
§content_description: Option<LocalizedString>Description of the image used for accessibility.
kind: Option<String>Identifies what kind of resource this is. Value: the fixed string "walletobjects#image".
private_image_id: Option<String>An ID for an already uploaded private image. Either this or source_uri should be set. Requests setting both or neither will be rejected. Please contact support to use private images.
source_uri: Option<ImageUri>A URI for the image. Either this or private_image_id should be set. Requests setting both or neither will be rejected.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Image
impl<'de> Deserialize<'de> for Image
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for Image
Auto Trait Implementations§
impl Freeze for Image
impl RefUnwindSafe for Image
impl Send for Image
impl Sync for Image
impl Unpin for Image
impl UnwindSafe for Image
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
Mutably borrows from an owned value. Read more