pub struct Account {
pub name: String,
pub full_name: String,
pub display_name: Option<String>,
pub homepage_uri: Option<String>,
pub parent: Option<String>,
pub label_ids: Vec<i64>,
pub automatic_label_ids: Vec<i64>,
pub account_type: i32,
}
Expand description
Information about CSS/MC account.
Fields§
§name: String
The label resource name. Format: accounts/{account}
full_name: String
Output only. Immutable. The CSS/MC account’s full name.
display_name: Option<String>
The CSS/MC account’s short display name.
homepage_uri: Option<String>
Output only. Immutable. The CSS/MC account’s homepage.
parent: Option<String>
The CSS/MC account’s parent resource. CSS group for CSS domains; CSS domain for MC accounts. Returned only if the user has access to the parent account.
label_ids: Vec<i64>
Manually created label IDs assigned to the CSS/MC account by a CSS parent account.
automatic_label_ids: Vec<i64>
Automatically created label IDs assigned to the MC account by CSS Center.
account_type: i32
Output only. The type of this account.
Implementations§
source§impl Account
impl Account
sourcepub fn display_name(&self) -> &str
pub fn display_name(&self) -> &str
Returns the value of display_name
, or the default value if display_name
is unset.
sourcepub fn homepage_uri(&self) -> &str
pub fn homepage_uri(&self) -> &str
Returns the value of homepage_uri
, or the default value if homepage_uri
is unset.
sourcepub fn parent(&self) -> &str
pub fn parent(&self) -> &str
Returns the value of parent
, or the default value if parent
is unset.
sourcepub fn account_type(&self) -> AccountType
pub fn account_type(&self) -> AccountType
Returns the enum value of account_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_account_type(&mut self, value: AccountType)
pub fn set_account_type(&mut self, value: AccountType)
Sets account_type
to the provided enum value.
Trait Implementations§
source§impl Message for Account
impl Message for Account
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
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,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
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,
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,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
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,
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,
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,
self
.source§impl PartialEq for Account
impl PartialEq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl Freeze for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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
§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>
T
in a tonic::Request