#[non_exhaustive]pub struct AuthorizeEnvironmentRequest {
pub name: String,
pub access_token: String,
pub id_token: String,
pub expire_time: Option<Timestamp>,
/* private fields */
}
Expand description
Request message for AuthorizeEnvironment.
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: String
Name of the resource that should receive the credentials, for example
users/me/environments/default
or
users/someone@example.com/environments/default
.
access_token: String
The OAuth access token that should be sent to the environment.
id_token: String
The OAuth ID token that should be sent to the environment.
expire_time: Option<Timestamp>
The time when the credentials expire. If not set, defaults to one hour from when the server received the request.
Implementations§
Source§impl AuthorizeEnvironmentRequest
impl AuthorizeEnvironmentRequest
pub fn new() -> Self
Sourcepub fn set_access_token<T: Into<String>>(self, v: T) -> Self
pub fn set_access_token<T: Into<String>>(self, v: T) -> Self
Sets the value of access_token.
Sourcepub fn set_id_token<T: Into<String>>(self, v: T) -> Self
pub fn set_id_token<T: Into<String>>(self, v: T) -> Self
Sets the value of id_token.
Sourcepub fn set_expire_time<T>(self, v: T) -> Self
pub fn set_expire_time<T>(self, v: T) -> Self
Sets the value of expire_time.
Sourcepub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_expire_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of expire_time.
Trait Implementations§
Source§impl Clone for AuthorizeEnvironmentRequest
impl Clone for AuthorizeEnvironmentRequest
Source§fn clone(&self) -> AuthorizeEnvironmentRequest
fn clone(&self) -> AuthorizeEnvironmentRequest
Returns a duplicate 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 AuthorizeEnvironmentRequest
impl Debug for AuthorizeEnvironmentRequest
Source§impl Default for AuthorizeEnvironmentRequest
impl Default for AuthorizeEnvironmentRequest
Source§fn default() -> AuthorizeEnvironmentRequest
fn default() -> AuthorizeEnvironmentRequest
Returns the “default value” for a type. Read more
impl StructuralPartialEq for AuthorizeEnvironmentRequest
Auto Trait Implementations§
impl Freeze for AuthorizeEnvironmentRequest
impl RefUnwindSafe for AuthorizeEnvironmentRequest
impl Send for AuthorizeEnvironmentRequest
impl Sync for AuthorizeEnvironmentRequest
impl Unpin for AuthorizeEnvironmentRequest
impl UnwindSafe for AuthorizeEnvironmentRequest
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