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

pub struct GoogleAdsField {
    pub resource_name: String,
    pub name: String,
    pub category: i32,
    pub selectable: bool,
    pub filterable: bool,
    pub sortable: bool,
    pub selectable_with: Vec<String>,
    pub attribute_resources: Vec<String>,
    pub metrics: Vec<String>,
    pub segments: Vec<String>,
    pub enum_values: Vec<String>,
    pub data_type: i32,
    pub type_url: String,
    pub is_repeated: bool,
}

A field or resource (artifact) used by GoogleAdsService.

Fields

resource_name: String

Output only. The resource name of the artifact. Artifact resource names have the form:

googleAdsFields/{name}

name: String

Output only. The name of the artifact.

category: i32

Output only. The category of the artifact.

selectable: bool

Output only. Whether the artifact can be used in a SELECT clause in search queries.

filterable: bool

Output only. Whether the artifact can be used in a WHERE clause in search queries.

sortable: bool

Output only. Whether the artifact can be used in a ORDER BY clause in search queries.

selectable_with: Vec<String>

Output only. The names of all resources, segments, and metrics that are selectable with the described artifact.

attribute_resources: Vec<String>

Output only. The names of all resources that are selectable with the described artifact. Fields from these resources do not segment metrics when included in search queries.

This field is only set for artifacts whose category is RESOURCE.

metrics: Vec<String>

Output only. At and beyond version V1 this field lists the names of all metrics that are selectable with the described artifact when it is used in the FROM clause. It is only set for artifacts whose category is RESOURCE.

Before version V1 this field lists the names of all metrics that are selectable with the described artifact. It is only set for artifacts whose category is either RESOURCE or SEGMENT

segments: Vec<String>

Output only. At and beyond version V1 this field lists the names of all artifacts, whether a segment or another resource, that segment metrics when included in search queries and when the described artifact is used in the FROM clause. It is only set for artifacts whose category is RESOURCE.

Before version V1 this field lists the names of all artifacts, whether a segment or another resource, that segment metrics when included in search queries. It is only set for artifacts of category RESOURCE, SEGMENT or METRIC.

enum_values: Vec<String>

Output only. Values the artifact can assume if it is a field of type ENUM.

This field is only set for artifacts of category SEGMENT or ATTRIBUTE.

data_type: i32

Output only. This field determines the operators that can be used with the artifact in WHERE clauses.

type_url: String

Output only. The URL of proto describing the artifact’s data type.

is_repeated: bool

Output only. Whether the field artifact is repeated.

Implementations

impl GoogleAdsField[src]

pub fn category(&self) -> GoogleAdsFieldCategory[src]

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

pub fn set_category(&mut self, value: GoogleAdsFieldCategory)[src]

Sets category to the provided enum value.

pub fn data_type(&self) -> GoogleAdsFieldDataType[src]

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

pub fn set_data_type(&mut self, value: GoogleAdsFieldDataType)[src]

Sets data_type to the provided enum value.

Trait Implementations

impl Clone for GoogleAdsField[src]

impl Debug for GoogleAdsField[src]

impl Default for GoogleAdsField[src]

impl Message for GoogleAdsField[src]

impl PartialEq<GoogleAdsField> for GoogleAdsField[src]

impl StructuralPartialEq for GoogleAdsField[src]

Auto Trait Implementations

impl RefUnwindSafe for GoogleAdsField

impl Send for GoogleAdsField

impl Sync for GoogleAdsField

impl Unpin for GoogleAdsField

impl UnwindSafe for GoogleAdsField

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]