pub struct User {
pub name: String,
pub user_id: i64,
pub display_name: String,
pub email: String,
pub role: String,
pub active: bool,
pub external_id: String,
pub service_account: bool,
pub orders_ui_local_time_zone: String,
}
Expand description
The User resource.
Fields§
§name: String
Identifier. The resource name of the User.
Format: networks/{network_code}/users/{user_id}
user_id: i64
Output only. User
ID.
display_name: String
Required. The name of the User. It has a maximum length of 128 characters.
email: String
Required. The email or login of the User. In order to create a new user, you must already have a Google Account.
role: String
Required. The unique Role ID of the User. Roles that are created by Google will have negative IDs.
active: bool
Output only. Specifies whether or not the User is active. An inactive user cannot log in to the system or perform any operations.
external_id: String
Optional. An identifier for the User that is meaningful to the publisher. This attribute has a maximum length of 255 characters.
service_account: bool
Output only. Whether the user is an OAuth2 service account user. Service account users can only be added through the UI.
orders_ui_local_time_zone: String
Optional. The IANA Time Zone Database time zone, e.g. “America/New_York”, used in the orders and line items UI for this User. If not provided, the UI then defaults to using the Network’s timezone. This setting only affects the UI for this user and does not affect the timezone of any dates and times returned in API responses.
Trait Implementations§
source§impl Message for User
impl Message for User
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 User
impl PartialEq for User
impl StructuralPartialEq for User
Auto Trait Implementations§
impl Freeze for User
impl RefUnwindSafe for User
impl Send for User
impl Sync for User
impl Unpin for User
impl UnwindSafe for User
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