pub struct User {
pub creation_timestamp: Option<String>,
pub description: Option<String>,
pub groups: Option<Vec<String>>,
pub id: Option<u64>,
pub kind: Option<String>,
pub name: Option<String>,
pub owner: Option<String>,
pub public_keys: Option<Vec<PublicKey>>,
pub self_link: Option<String>,
}
Expand description
A User resource.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- add public key users (none)
- delete users (none)
- get users (response)
- insert users (request)
- list users (none)
- remove public key users (none)
Fields§
§creation_timestamp: Option<String>
[Output Only] Creation timestamp in RFC3339 text format.
description: Option<String>
An optional textual description of the resource; provided by the client when the resource is created.
groups: Option<Vec<String>>
[Output Only] A list of URLs to Group resources who contain the user. Users are only members of groups in the same project.
id: Option<u64>
[Output Only] Unique identifier for the resource; defined by the server.
kind: Option<String>
[Output Only] Type of the resource. Always clouduseraccounts#user for users.
name: Option<String>
Name of the resource; provided by the client when the resource is created.
owner: Option<String>
Email address of account’s owner. This account will be validated to make sure it exists. The email can belong to any domain, but it must be tied to a Google account.
public_keys: Option<Vec<PublicKey>>
[Output Only] Public keys that this user may use to login.
self_link: Option<String>
[Output Only] Server defined URL for the resource.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for User
impl<'de> Deserialize<'de> for User
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for User
impl Resource for User
impl ResponseResult 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more