pub struct OauthClientCredential {
pub client_secret: Option<String>,
pub disabled: Option<bool>,
pub display_name: Option<String>,
pub name: Option<String>,
}
Expand description
Represents an OauthClientCredential. Used to authenticate an OauthClient while accessing Google Cloud resources on behalf of a user by using OAuth 2.0 Protocol.
§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).
- locations oauth clients credentials create projects (request|response)
- locations oauth clients credentials get projects (response)
- locations oauth clients credentials patch projects (request|response)
Fields§
§client_secret: Option<String>
Output only. The system-generated OAuth client secret. The client secret must be stored securely. If the client secret is leaked, you must delete and re-create the client credential. To learn more, see OAuth client and credential security risks and mitigations
disabled: Option<bool>
Optional. Whether the OauthClientCredential is disabled. You cannot use a disabled OauthClientCredential.
display_name: Option<String>
Optional. A user-specified display name of the OauthClientCredential. Cannot exceed 32 characters.
name: Option<String>
Immutable. The resource name of the OauthClientCredential. Format: projects/{project}/locations/{location}/oauthClients/{oauth_client}/credentials/{credential}
Trait Implementations§
source§impl Clone for OauthClientCredential
impl Clone for OauthClientCredential
source§fn clone(&self) -> OauthClientCredential
fn clone(&self) -> OauthClientCredential
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OauthClientCredential
impl Debug for OauthClientCredential
source§impl Default for OauthClientCredential
impl Default for OauthClientCredential
source§fn default() -> OauthClientCredential
fn default() -> OauthClientCredential
source§impl<'de> Deserialize<'de> for OauthClientCredential
impl<'de> Deserialize<'de> for OauthClientCredential
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>,
source§impl Serialize for OauthClientCredential
impl Serialize for OauthClientCredential
impl RequestValue for OauthClientCredential
impl ResponseResult for OauthClientCredential
Auto Trait Implementations§
impl Freeze for OauthClientCredential
impl RefUnwindSafe for OauthClientCredential
impl Send for OauthClientCredential
impl Sync for OauthClientCredential
impl Unpin for OauthClientCredential
impl UnwindSafe for OauthClientCredential
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)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