Struct google_api_proto::google::api::servicecontrol::v1::check_response::ConsumerInfo
source · pub struct ConsumerInfo {
pub project_number: i64,
pub type: i32,
pub consumer_number: i64,
}
Expand description
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§
source§impl ConsumerInfo
impl ConsumerInfo
sourcepub fn type(&self) -> ConsumerType
pub fn type(&self) -> ConsumerType
Returns the enum value of type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_type(&mut self, value: ConsumerType)
pub fn set_type(&mut self, value: ConsumerType)
Sets type
to the provided enum value.
Trait Implementations§
source§impl Clone for ConsumerInfo
impl Clone for ConsumerInfo
source§fn clone(&self) -> ConsumerInfo
fn clone(&self) -> ConsumerInfo
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ConsumerInfo
impl Debug for ConsumerInfo
source§impl Default for ConsumerInfo
impl Default for ConsumerInfo
source§impl Message for ConsumerInfo
impl Message for ConsumerInfo
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message to a newly allocated buffer.
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.source§impl PartialEq for ConsumerInfo
impl PartialEq for ConsumerInfo
source§fn eq(&self, other: &ConsumerInfo) -> bool
fn eq(&self, other: &ConsumerInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ConsumerInfo
impl StructuralPartialEq for ConsumerInfo
Auto Trait Implementations§
impl Freeze for ConsumerInfo
impl RefUnwindSafe for ConsumerInfo
impl Send for ConsumerInfo
impl Sync for ConsumerInfo
impl Unpin for ConsumerInfo
impl UnwindSafe for ConsumerInfo
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request