#[non_exhaustive]pub struct ConsumerInfo {
pub project_number: i64,
pub type: ConsumerType,
pub consumer_number: i64,
/* private fields */
}Expand description
ConsumerInfo provides information about the consumer.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.project_number: i64The 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: ConsumerTypeThe type of the consumer which should have been defined in Google Resource Manager.
consumer_number: i64The 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
pub fn new() -> Self
Sourcepub fn set_project_number<T: Into<i64>>(self, v: T) -> Self
pub fn set_project_number<T: Into<i64>>(self, v: T) -> Self
Sets the value of project_number.
Sourcepub fn set_type<T: Into<ConsumerType>>(self, v: T) -> Self
pub fn set_type<T: Into<ConsumerType>>(self, v: T) -> Self
Sets the value of r#type.
Sourcepub fn set_consumer_number<T: Into<i64>>(self, v: T) -> Self
pub fn set_consumer_number<T: Into<i64>>(self, v: T) -> Self
Sets the value of consumer_number.
Trait Implementations§
Source§impl Clone for ConsumerInfo
impl Clone for ConsumerInfo
Source§fn clone(&self) -> ConsumerInfo
fn clone(&self) -> ConsumerInfo
Returns a duplicate 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§fn default() -> ConsumerInfo
fn default() -> ConsumerInfo
Returns the “default value” for a type. Read more
Source§impl Message for ConsumerInfo
impl Message for ConsumerInfo
Source§impl PartialEq for ConsumerInfo
impl PartialEq 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