#[non_exhaustive]pub struct OAuth2 {
pub client_id: String,
pub client_secret: String,
pub client_secret_sha256: String,
/* private fields */
}Expand description
The OAuth 2.0 Settings
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.client_id: StringThe OAuth 2.0 client ID registered in the workforce identity federation OAuth 2.0 Server.
client_secret: StringInput only. The OAuth 2.0 client secret created while registering the client ID.
client_secret_sha256: StringOutput only. SHA256 hash value for the client secret. This field is returned by IAP when the settings are retrieved.
Implementations§
Source§impl OAuth2
impl OAuth2
pub fn new() -> Self
Sourcepub fn set_client_id<T: Into<String>>(self, v: T) -> Self
pub fn set_client_id<T: Into<String>>(self, v: T) -> Self
Sets the value of client_id.
Sourcepub fn set_client_secret<T: Into<String>>(self, v: T) -> Self
pub fn set_client_secret<T: Into<String>>(self, v: T) -> Self
Sets the value of client_secret.
Sourcepub fn set_client_secret_sha256<T: Into<String>>(self, v: T) -> Self
pub fn set_client_secret_sha256<T: Into<String>>(self, v: T) -> Self
Sets the value of client_secret_sha256.
Trait Implementations§
impl StructuralPartialEq for OAuth2
Auto Trait Implementations§
impl Freeze for OAuth2
impl RefUnwindSafe for OAuth2
impl Send for OAuth2
impl Sync for OAuth2
impl Unpin for OAuth2
impl UnwindSafe for OAuth2
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