Struct google_api_proto::google::ads::googleads::v17::common::ImageAdInfo
source · 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§
source§impl ImageAdInfo
impl ImageAdInfo
sourcepub fn mime_type(&self) -> MimeType
pub fn mime_type(&self) -> MimeType
Returns the enum value of mime_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_mime_type(&mut self, value: MimeType)
pub fn set_mime_type(&mut self, value: MimeType)
Sets mime_type
to the provided enum value.
sourcepub fn pixel_width(&self) -> i64
pub fn pixel_width(&self) -> i64
Returns the value of pixel_width
, or the default value if pixel_width
is unset.
sourcepub fn pixel_height(&self) -> i64
pub fn pixel_height(&self) -> i64
Returns the value of pixel_height
, or the default value if pixel_height
is unset.
sourcepub fn image_url(&self) -> &str
pub fn image_url(&self) -> &str
Returns the value of image_url
, or the default value if image_url
is unset.
sourcepub fn preview_pixel_width(&self) -> i64
pub fn preview_pixel_width(&self) -> i64
Returns the value of preview_pixel_width
, or the default value if preview_pixel_width
is unset.
sourcepub fn preview_pixel_height(&self) -> i64
pub fn preview_pixel_height(&self) -> i64
Returns the value of preview_pixel_height
, or the default value if preview_pixel_height
is unset.
sourcepub fn preview_image_url(&self) -> &str
pub fn preview_image_url(&self) -> &str
Returns the value of preview_image_url
, or the default value if preview_image_url
is unset.
Trait Implementations§
source§impl Clone for ImageAdInfo
impl Clone for ImageAdInfo
source§fn clone(&self) -> ImageAdInfo
fn clone(&self) -> ImageAdInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ImageAdInfo
impl Debug for ImageAdInfo
source§impl Default for ImageAdInfo
impl Default for ImageAdInfo
source§impl Message for ImageAdInfo
impl Message for ImageAdInfo
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ImageAdInfo
impl PartialEq for ImageAdInfo
source§fn eq(&self, other: &ImageAdInfo) -> bool
fn eq(&self, other: &ImageAdInfo) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ImageAdInfo
Auto Trait Implementations§
impl !Freeze for ImageAdInfo
impl RefUnwindSafe for ImageAdInfo
impl Send for ImageAdInfo
impl Sync for ImageAdInfo
impl Unpin for ImageAdInfo
impl UnwindSafe for ImageAdInfo
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request