Struct gapi_grpc::google::api::servicecontrol::v1::check_response::ConsumerInfo[][src]

pub struct ConsumerInfo {
    pub project_number: i64,
    pub type: i32,
    pub consumer_number: i64,
}

ConsumerInfo provides information about the consumer.

Fields

project_number: i64

The Google cloud project number, e.g. 1234567890. A value of 0 indicates no project number is found.

NOTE: This field is deprecated after we support flexible consumer id. New code should not depend on this field anymore.

type: i32

The type of the consumer which should have been defined in Google Resource Manager.

consumer_number: i64

The consumer identity number, can be Google cloud project number, folder number or organization number e.g. 1234567890. A value of 0 indicates no consumer number is found.

Implementations

impl ConsumerInfo[src]

pub fn type(&self) -> ConsumerType[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: ConsumerType)[src]

Sets type to the provided enum value.

Trait Implementations

impl Clone for ConsumerInfo[src]

impl Debug for ConsumerInfo[src]

impl Default for ConsumerInfo[src]

impl Message for ConsumerInfo[src]

impl PartialEq<ConsumerInfo> for ConsumerInfo[src]

impl StructuralPartialEq for ConsumerInfo[src]

Auto Trait Implementations

impl RefUnwindSafe for ConsumerInfo

impl Send for ConsumerInfo

impl Sync for ConsumerInfo

impl Unpin for ConsumerInfo

impl UnwindSafe for ConsumerInfo

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]