#[non_exhaustive]pub struct User {
pub name: String,
pub display_name: String,
pub create_time: Option<Timestamp>,
pub last_token_request_time: Option<Timestamp>,
/* private fields */
}Expand description
User represents a user connected to the service providers through a AccountConnector.
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.name: StringIdentifier. Resource name of the user, in the format
projects/*/locations/*/accountConnectors/*/users/*.
display_name: StringOutput only. Developer Connect automatically converts user identity to some human readable description, e.g., email address.
create_time: Option<Timestamp>Output only. The timestamp when the user was created.
last_token_request_time: Option<Timestamp>Output only. The timestamp when the token was last requested.
Implementations§
Source§impl User
impl User
pub fn new() -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sets the value of display_name.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_last_token_request_time<T>(self, v: T) -> Self
pub fn set_last_token_request_time<T>(self, v: T) -> Self
Sets the value of last_token_request_time.
Sourcepub fn set_or_clear_last_token_request_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_last_token_request_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of last_token_request_time.
Trait Implementations§
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
Mutably borrows from an owned value. Read more