Struct gapi_grpc::google::ads::googleads::v6::common::ImageAdInfo[][src]

pub struct ImageAdInfo {
    pub pixel_width: i64,
    pub pixel_height: i64,
    pub image_url: String,
    pub preview_pixel_width: i64,
    pub preview_pixel_height: i64,
    pub preview_image_url: String,
    pub mime_type: i32,
    pub name: String,
    pub image: Option<Image>,
}

An image ad.

Fields

pixel_width: i64

Width in pixels of the full size image.

pixel_height: i64

Height in pixels of the full size image.

image_url: String

URL of the full size image.

preview_pixel_width: i64

Width in pixels of the preview size image.

preview_pixel_height: i64

Height in pixels of the preview size image.

preview_image_url: String

URL of the preview size image.

mime_type: i32

The mime type of the image.

name: 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.

  1. An existing MediaFile resource.
  2. The raw image data as bytes.

Implementations

impl ImageAdInfo[src]

pub fn mime_type(&self) -> MimeType[src]

Returns the enum value of mime_type, or the default if the field is set to an invalid enum value.

pub fn set_mime_type(&mut self, value: MimeType)[src]

Sets mime_type to the provided enum value.

Trait Implementations

impl Clone for ImageAdInfo[src]

impl Debug for ImageAdInfo[src]

impl Default for ImageAdInfo[src]

impl Message for ImageAdInfo[src]

impl PartialEq<ImageAdInfo> for ImageAdInfo[src]

impl StructuralPartialEq for ImageAdInfo[src]

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

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]