Struct googapis::google::ads::googleads::v7::common::ImageAdInfo [−][src]
pub struct ImageAdInfo {
pub pixel_width: Option<i64>,
pub pixel_height: Option<i64>,
pub image_url: Option<String>,
pub preview_pixel_width: Option<i64>,
pub preview_pixel_height: Option<i64>,
pub preview_image_url: Option<String>,
pub mime_type: i32,
pub name: Option<String>,
pub image: Option<Image>,
}
Expand description
An image ad.
Fields
pixel_width: Option<i64>
Width in pixels of the full size image.
pixel_height: Option<i64>
Height in pixels of the full size image.
image_url: Option<String>
URL of the full size image.
preview_pixel_width: Option<i64>
Width in pixels of the preview size image.
preview_pixel_height: Option<i64>
Height in pixels of the preview size image.
preview_image_url: Option<String>
URL of the preview size image.
mime_type: i32
The mime type of the image.
name: Option<String>
The name of the image. If the image was created from a MediaFile, this is the MediaFile’s name. If the image was created from bytes, this is empty.
image: Option<Image>
The image to create the ImageAd from. This can be specified in one of two ways.
- An existing MediaFile resource.
- The raw image data as bytes.
Implementations
Returns the enum value of mime_type
, or the default if the field is set to an invalid enum value.
Sets mime_type
to the provided enum value.
Returns the value of pixel_width
, or the default value if pixel_width
is unset.
Returns the value of pixel_height
, or the default value if pixel_height
is unset.
Returns the value of image_url
, or the default value if image_url
is unset.
Returns the value of preview_pixel_width
, or the default value if preview_pixel_width
is unset.
Returns the value of preview_pixel_height
, or the default value if preview_pixel_height
is unset.
Returns the value of preview_image_url
, or the default value if preview_image_url
is unset.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for ImageAdInfo
impl Send for ImageAdInfo
impl Sync for ImageAdInfo
impl Unpin for ImageAdInfo
impl UnwindSafe for ImageAdInfo
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more