#[non_exhaustive]pub struct ProviderOAuthConfig {
pub scopes: Vec<String>,
pub oauth_provider_id: Option<OauthProviderId>,
/* private fields */
}Expand description
ProviderOAuthConfig is the OAuth config for a provider.
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.scopes: Vec<String>Required. User selected scopes to apply to the Oauth config In the event of changing scopes, user records under AccountConnector will be deleted and users will re-auth again.
oauth_provider_id: Option<OauthProviderId>OAuth Provider ID. It could be Developer Connect owned or providers provided.
Implementations§
Source§impl ProviderOAuthConfig
impl ProviderOAuthConfig
pub fn new() -> Self
Sourcepub fn set_scopes<T, V>(self, v: T) -> Self
pub fn set_scopes<T, V>(self, v: T) -> Self
Sets the value of scopes.
Sourcepub fn set_oauth_provider_id<T: Into<Option<OauthProviderId>>>(
self,
v: T,
) -> Self
pub fn set_oauth_provider_id<T: Into<Option<OauthProviderId>>>( self, v: T, ) -> Self
Sets the value of oauth_provider_id.
Note that all the setters affecting oauth_provider_id are mutually
exclusive.
Sourcepub fn system_provider_id(&self) -> Option<&SystemProvider>
pub fn system_provider_id(&self) -> Option<&SystemProvider>
The value of oauth_provider_id
if it holds a SystemProviderId, None if the field is not set or
holds a different branch.
Sourcepub fn set_system_provider_id<T: Into<SystemProvider>>(self, v: T) -> Self
pub fn set_system_provider_id<T: Into<SystemProvider>>(self, v: T) -> Self
Sets the value of oauth_provider_id
to hold a SystemProviderId.
Note that all the setters affecting oauth_provider_id are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ProviderOAuthConfig
impl Clone for ProviderOAuthConfig
Source§fn clone(&self) -> ProviderOAuthConfig
fn clone(&self) -> ProviderOAuthConfig
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 ProviderOAuthConfig
impl Debug for ProviderOAuthConfig
Source§impl Default for ProviderOAuthConfig
impl Default for ProviderOAuthConfig
Source§fn default() -> ProviderOAuthConfig
fn default() -> ProviderOAuthConfig
Returns the “default value” for a type. Read more
Source§impl Message for ProviderOAuthConfig
impl Message for ProviderOAuthConfig
Source§impl PartialEq for ProviderOAuthConfig
impl PartialEq for ProviderOAuthConfig
impl StructuralPartialEq for ProviderOAuthConfig
Auto Trait Implementations§
impl Freeze for ProviderOAuthConfig
impl RefUnwindSafe for ProviderOAuthConfig
impl Send for ProviderOAuthConfig
impl Sync for ProviderOAuthConfig
impl Unpin for ProviderOAuthConfig
impl UnwindSafe for ProviderOAuthConfig
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