Struct google_api_proto::google::cloud::oslogin::common::PosixAccount
source · pub struct PosixAccount {
pub primary: bool,
pub username: String,
pub uid: i64,
pub gid: i64,
pub home_directory: String,
pub shell: String,
pub gecos: String,
pub system_id: String,
pub account_id: String,
pub operating_system_type: i32,
pub name: String,
}
Expand description
The POSIX account information associated with a Google account.
Fields§
§primary: bool
Only one POSIX account can be marked as primary.
username: String
The username of the POSIX account.
uid: i64
The user ID.
gid: i64
The default group ID.
home_directory: String
The path to the home directory for this account.
shell: String
The path to the logic shell for this account.
gecos: String
The GECOS (user information) entry for this account.
system_id: String
System identifier for which account the username or uid applies to. By default, the empty value is used.
account_id: String
Output only. A POSIX account identifier.
operating_system_type: i32
The operating system type where this account applies.
name: String
Output only. The canonical resource name.
Implementations§
source§impl PosixAccount
impl PosixAccount
sourcepub fn operating_system_type(&self) -> OperatingSystemType
pub fn operating_system_type(&self) -> OperatingSystemType
Returns the enum value of operating_system_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_operating_system_type(&mut self, value: OperatingSystemType)
pub fn set_operating_system_type(&mut self, value: OperatingSystemType)
Sets operating_system_type
to the provided enum value.
Trait Implementations§
source§impl Clone for PosixAccount
impl Clone for PosixAccount
source§fn clone(&self) -> PosixAccount
fn clone(&self) -> PosixAccount
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 PosixAccount
impl Debug for PosixAccount
source§impl Default for PosixAccount
impl Default for PosixAccount
source§impl Message for PosixAccount
impl Message for PosixAccount
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 PosixAccount
impl PartialEq for PosixAccount
source§fn eq(&self, other: &PosixAccount) -> bool
fn eq(&self, other: &PosixAccount) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for PosixAccount
Auto Trait Implementations§
impl Freeze for PosixAccount
impl RefUnwindSafe for PosixAccount
impl Send for PosixAccount
impl Sync for PosixAccount
impl Unpin for PosixAccount
impl UnwindSafe for PosixAccount
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