Struct gapi_grpc::google::ads::googleads::v5::common::AdTextAsset[][src]

pub struct AdTextAsset {
    pub text: String,
    pub pinned_field: i32,
}

A text asset used inside an ad.

Fields

text: String

Asset text.

pinned_field: i32

The pinned field of the asset. This restricts the asset to only serve within this field. Multiple assets can be pinned to the same field. An asset that is unpinned or pinned to a different field will not serve in a field where some other asset has been pinned.

Implementations

impl AdTextAsset[src]

pub fn pinned_field(&self) -> ServedAssetFieldType[src]

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

pub fn set_pinned_field(&mut self, value: ServedAssetFieldType)[src]

Sets pinned_field to the provided enum value.

Trait Implementations

impl Clone for AdTextAsset[src]

impl Debug for AdTextAsset[src]

impl Default for AdTextAsset[src]

impl Message for AdTextAsset[src]

impl PartialEq<AdTextAsset> for AdTextAsset[src]

impl StructuralPartialEq for AdTextAsset[src]

Auto Trait Implementations

impl RefUnwindSafe for AdTextAsset

impl Send for AdTextAsset

impl Sync for AdTextAsset

impl Unpin for AdTextAsset

impl UnwindSafe for AdTextAsset

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]