Struct gapi_grpc::google::ads::googleads::v7::resources::Label[][src]

pub struct Label {
    pub resource_name: String,
    pub id: i64,
    pub name: String,
    pub status: i32,
    pub text_label: Option<TextLabel>,
}

A label.

Fields

resource_name: String

Immutable. Name of the resource. Label resource names have the form: customers/{customer_id}/labels/{label_id}

id: i64

Output only. Id of the label. Read only.

name: String

The name of the label.

This field is required and should not be empty when creating a new label.

The length of this string should be between 1 and 80, inclusive.

status: i32

Output only. Status of the label. Read only.

text_label: Option<TextLabel>

A type of label displaying text on a colored background.

Implementations

impl Label[src]

pub fn status(&self) -> LabelStatus[src]

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

pub fn set_status(&mut self, value: LabelStatus)[src]

Sets status to the provided enum value.

Trait Implementations

impl Clone for Label[src]

impl Debug for Label[src]

impl Default for Label[src]

impl Message for Label[src]

impl PartialEq<Label> for Label[src]

impl StructuralPartialEq for Label[src]

Auto Trait Implementations

impl RefUnwindSafe for Label

impl Send for Label

impl Sync for Label

impl Unpin for Label

impl UnwindSafe for Label

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]