#[non_exhaustive]pub struct SocialProviderSettings {
pub facebook: Option<BackendAuthSocialProviderConfig>,
pub google: Option<BackendAuthSocialProviderConfig>,
pub login_with_amazon: Option<BackendAuthSocialProviderConfig>,
pub sign_in_with_apple: Option<BackendAuthAppleProviderConfig>,
}
Expand description
The settings for using the social identity providers for access to your Amplify app.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.facebook: Option<BackendAuthSocialProviderConfig>
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
google: Option<BackendAuthSocialProviderConfig>
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
login_with_amazon: Option<BackendAuthSocialProviderConfig>
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
sign_in_with_apple: Option<BackendAuthAppleProviderConfig>
Describes Apple social federation configurations for allowing your app users to sign in using OAuth.
Implementations§
source§impl SocialProviderSettings
impl SocialProviderSettings
sourcepub fn facebook(&self) -> Option<&BackendAuthSocialProviderConfig>
pub fn facebook(&self) -> Option<&BackendAuthSocialProviderConfig>
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
sourcepub fn google(&self) -> Option<&BackendAuthSocialProviderConfig>
pub fn google(&self) -> Option<&BackendAuthSocialProviderConfig>
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
sourcepub fn login_with_amazon(&self) -> Option<&BackendAuthSocialProviderConfig>
pub fn login_with_amazon(&self) -> Option<&BackendAuthSocialProviderConfig>
Describes third-party social federation configurations for allowing your app users to sign in using OAuth.
sourcepub fn sign_in_with_apple(&self) -> Option<&BackendAuthAppleProviderConfig>
pub fn sign_in_with_apple(&self) -> Option<&BackendAuthAppleProviderConfig>
Describes Apple social federation configurations for allowing your app users to sign in using OAuth.
source§impl SocialProviderSettings
impl SocialProviderSettings
sourcepub fn builder() -> SocialProviderSettingsBuilder
pub fn builder() -> SocialProviderSettingsBuilder
Creates a new builder-style object to manufacture SocialProviderSettings
.
Trait Implementations§
source§impl Clone for SocialProviderSettings
impl Clone for SocialProviderSettings
source§fn clone(&self) -> SocialProviderSettings
fn clone(&self) -> SocialProviderSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SocialProviderSettings
impl Debug for SocialProviderSettings
source§impl PartialEq for SocialProviderSettings
impl PartialEq for SocialProviderSettings
source§fn eq(&self, other: &SocialProviderSettings) -> bool
fn eq(&self, other: &SocialProviderSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SocialProviderSettings
Auto Trait Implementations§
impl Freeze for SocialProviderSettings
impl RefUnwindSafe for SocialProviderSettings
impl Send for SocialProviderSettings
impl Sync for SocialProviderSettings
impl Unpin for SocialProviderSettings
impl UnwindSafe for SocialProviderSettings
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default 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