Struct gapi_grpc::google::ads::googleads::v5::resources::FeedAttribute[][src]

pub struct FeedAttribute {
    pub id: Option<i64>,
    pub name: Option<String>,
    pub type: i32,
    pub is_part_of_key: Option<bool>,
}

FeedAttributes define the types of data expected to be present in a Feed. A single FeedAttribute specifies the expected type of the FeedItemAttributes with the same FeedAttributeId. Optionally, a FeedAttribute can be marked as being part of a FeedItem’s unique key.

Fields

id: Option<i64>

ID of the attribute.

name: Option<String>

The name of the attribute. Required.

type: i32

Data type for feed attribute. Required.

is_part_of_key: Option<bool>

Indicates that data corresponding to this attribute is part of a FeedItem’s unique key. It defaults to false if it is unspecified. Note that a unique key is not required in a Feed’s schema, in which case the FeedItems must be referenced by their feed_item_id.

Implementations

impl FeedAttribute[src]

pub fn type(&self) -> FeedAttributeType[src]

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

pub fn set_type(&mut self, value: FeedAttributeType)[src]

Sets type to the provided enum value.

Trait Implementations

impl Clone for FeedAttribute[src]

impl Debug for FeedAttribute[src]

impl Default for FeedAttribute[src]

impl Message for FeedAttribute[src]

impl PartialEq<FeedAttribute> for FeedAttribute[src]

impl StructuralPartialEq for FeedAttribute[src]

Auto Trait Implementations

impl RefUnwindSafe for FeedAttribute

impl Send for FeedAttribute

impl Sync for FeedAttribute

impl Unpin for FeedAttribute

impl UnwindSafe for FeedAttribute

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]