pub struct OidcProviderBuilder<S: State = Empty> { /* private fields */ }Expand description
Use builder syntax to set the inputs and finish with build().
Implementations§
Source§impl<S: State> OidcProviderBuilder<S>
impl<S: State> OidcProviderBuilder<S>
Sourcepub fn build(self) -> OidcProviderwhere
S: IsComplete,
pub fn build(self) -> OidcProviderwhere
S: IsComplete,
Finish building and return the requested object
Sourcepub fn id(self, value: impl Into<String>) -> OidcProviderBuilder<SetId<S>>where
S::Id: IsUnset,
pub fn id(self, value: impl Into<String>) -> OidcProviderBuilder<SetId<S>>where
S::Id: IsUnset,
Required.
Sourcepub fn name(self, value: impl Into<String>) -> OidcProviderBuilder<SetName<S>>where
S::Name: IsUnset,
pub fn name(self, value: impl Into<String>) -> OidcProviderBuilder<SetName<S>>where
S::Name: IsUnset,
Required.
Sourcepub fn slug(self, value: impl Into<String>) -> OidcProviderBuilder<SetSlug<S>>where
S::Slug: IsUnset,
pub fn slug(self, value: impl Into<String>) -> OidcProviderBuilder<SetSlug<S>>where
S::Slug: IsUnset,
Sourcepub fn maybe_slug(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetSlug<S>>where
S::Slug: IsUnset,
pub fn maybe_slug(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetSlug<S>>where
S::Slug: IsUnset,
Sourcepub fn icon_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetIconUrl<S>>where
S::IconUrl: IsUnset,
pub fn icon_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetIconUrl<S>>where
S::IconUrl: IsUnset,
Sourcepub fn maybe_icon_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetIconUrl<S>>where
S::IconUrl: IsUnset,
pub fn maybe_icon_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetIconUrl<S>>where
S::IconUrl: IsUnset,
Sourcepub fn visibility(
self,
value: OidcProviderVisibility,
) -> OidcProviderBuilder<SetVisibility<S>>where
S::Visibility: IsUnset,
pub fn visibility(
self,
value: OidcProviderVisibility,
) -> OidcProviderBuilder<SetVisibility<S>>where
S::Visibility: IsUnset,
Sourcepub fn maybe_visibility(
self,
value: Option<OidcProviderVisibility>,
) -> OidcProviderBuilder<SetVisibility<S>>where
S::Visibility: IsUnset,
pub fn maybe_visibility(
self,
value: Option<OidcProviderVisibility>,
) -> OidcProviderBuilder<SetVisibility<S>>where
S::Visibility: IsUnset,
Sourcepub fn client_id(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetClientId<S>>where
S::ClientId: IsUnset,
pub fn client_id(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetClientId<S>>where
S::ClientId: IsUnset,
Required.
Sourcepub fn client_secret(
self,
value: impl Into<SecretString>,
) -> OidcProviderBuilder<SetClientSecret<S>>where
S::ClientSecret: IsUnset,
pub fn client_secret(
self,
value: impl Into<SecretString>,
) -> OidcProviderBuilder<SetClientSecret<S>>where
S::ClientSecret: IsUnset,
Sourcepub fn maybe_client_secret(
self,
value: Option<impl Into<SecretString>>,
) -> OidcProviderBuilder<SetClientSecret<S>>where
S::ClientSecret: IsUnset,
pub fn maybe_client_secret(
self,
value: Option<impl Into<SecretString>>,
) -> OidcProviderBuilder<SetClientSecret<S>>where
S::ClientSecret: IsUnset,
Sourcepub fn scopes(self, value: Vec<String>) -> OidcProviderBuilder<SetScopes<S>>where
S::Scopes: IsUnset,
pub fn scopes(self, value: Vec<String>) -> OidcProviderBuilder<SetScopes<S>>where
S::Scopes: IsUnset,
Sourcepub fn maybe_scopes(
self,
value: Option<Vec<String>>,
) -> OidcProviderBuilder<SetScopes<S>>where
S::Scopes: IsUnset,
pub fn maybe_scopes(
self,
value: Option<Vec<String>>,
) -> OidcProviderBuilder<SetScopes<S>>where
S::Scopes: IsUnset,
Sourcepub fn redirect_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetRedirectUrl<S>>where
S::RedirectUrl: IsUnset,
pub fn redirect_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetRedirectUrl<S>>where
S::RedirectUrl: IsUnset,
Sourcepub fn maybe_redirect_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetRedirectUrl<S>>where
S::RedirectUrl: IsUnset,
pub fn maybe_redirect_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetRedirectUrl<S>>where
S::RedirectUrl: IsUnset,
Sourcepub fn discovery_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetDiscoveryUrl<S>>where
S::DiscoveryUrl: IsUnset,
pub fn discovery_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetDiscoveryUrl<S>>where
S::DiscoveryUrl: IsUnset,
Sourcepub fn maybe_discovery_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetDiscoveryUrl<S>>where
S::DiscoveryUrl: IsUnset,
pub fn maybe_discovery_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetDiscoveryUrl<S>>where
S::DiscoveryUrl: IsUnset,
Sourcepub fn issuer_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetIssuerUrl<S>>where
S::IssuerUrl: IsUnset,
pub fn issuer_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetIssuerUrl<S>>where
S::IssuerUrl: IsUnset,
Sourcepub fn maybe_issuer_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetIssuerUrl<S>>where
S::IssuerUrl: IsUnset,
pub fn maybe_issuer_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetIssuerUrl<S>>where
S::IssuerUrl: IsUnset,
Sourcepub fn token_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetTokenUrl<S>>where
S::TokenUrl: IsUnset,
pub fn token_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetTokenUrl<S>>where
S::TokenUrl: IsUnset,
Sourcepub fn maybe_token_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetTokenUrl<S>>where
S::TokenUrl: IsUnset,
pub fn maybe_token_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetTokenUrl<S>>where
S::TokenUrl: IsUnset,
Sourcepub fn token_url_params(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetTokenUrlParams<S>>where
S::TokenUrlParams: IsUnset,
pub fn token_url_params(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetTokenUrlParams<S>>where
S::TokenUrlParams: IsUnset,
Sourcepub fn maybe_token_url_params(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetTokenUrlParams<S>>where
S::TokenUrlParams: IsUnset,
pub fn maybe_token_url_params(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetTokenUrlParams<S>>where
S::TokenUrlParams: IsUnset,
Sourcepub fn introspection_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetIntrospectionUrl<S>>where
S::IntrospectionUrl: IsUnset,
pub fn introspection_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetIntrospectionUrl<S>>where
S::IntrospectionUrl: IsUnset,
Sourcepub fn maybe_introspection_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetIntrospectionUrl<S>>where
S::IntrospectionUrl: IsUnset,
pub fn maybe_introspection_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetIntrospectionUrl<S>>where
S::IntrospectionUrl: IsUnset,
Sourcepub fn introspection_url_params(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetIntrospectionUrlParams<S>>where
S::IntrospectionUrlParams: IsUnset,
pub fn introspection_url_params(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetIntrospectionUrlParams<S>>where
S::IntrospectionUrlParams: IsUnset,
Sourcepub fn maybe_introspection_url_params(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetIntrospectionUrlParams<S>>where
S::IntrospectionUrlParams: IsUnset,
pub fn maybe_introspection_url_params(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetIntrospectionUrlParams<S>>where
S::IntrospectionUrlParams: IsUnset,
Sourcepub fn revocation_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetRevocationUrl<S>>where
S::RevocationUrl: IsUnset,
pub fn revocation_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetRevocationUrl<S>>where
S::RevocationUrl: IsUnset,
Sourcepub fn maybe_revocation_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetRevocationUrl<S>>where
S::RevocationUrl: IsUnset,
pub fn maybe_revocation_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetRevocationUrl<S>>where
S::RevocationUrl: IsUnset,
Sourcepub fn revocation_url_params(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetRevocationUrlParams<S>>where
S::RevocationUrlParams: IsUnset,
pub fn revocation_url_params(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetRevocationUrlParams<S>>where
S::RevocationUrlParams: IsUnset,
Sourcepub fn maybe_revocation_url_params(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetRevocationUrlParams<S>>where
S::RevocationUrlParams: IsUnset,
pub fn maybe_revocation_url_params(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetRevocationUrlParams<S>>where
S::RevocationUrlParams: IsUnset,
Sourcepub fn user_info_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetUserInfoUrl<S>>where
S::UserInfoUrl: IsUnset,
pub fn user_info_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetUserInfoUrl<S>>where
S::UserInfoUrl: IsUnset,
Sourcepub fn maybe_user_info_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetUserInfoUrl<S>>where
S::UserInfoUrl: IsUnset,
pub fn maybe_user_info_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetUserInfoUrl<S>>where
S::UserInfoUrl: IsUnset,
Sourcepub fn json_web_key_set_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetJsonWebKeySetUrl<S>>where
S::JsonWebKeySetUrl: IsUnset,
pub fn json_web_key_set_url(
self,
value: impl Into<String>,
) -> OidcProviderBuilder<SetJsonWebKeySetUrl<S>>where
S::JsonWebKeySetUrl: IsUnset,
Sourcepub fn maybe_json_web_key_set_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetJsonWebKeySetUrl<S>>where
S::JsonWebKeySetUrl: IsUnset,
pub fn maybe_json_web_key_set_url(
self,
value: Option<impl Into<String>>,
) -> OidcProviderBuilder<SetJsonWebKeySetUrl<S>>where
S::JsonWebKeySetUrl: IsUnset,
Sourcepub fn json_web_key_set(
self,
value: JsonWebKeySet<CoreJsonWebKey>,
) -> OidcProviderBuilder<SetJsonWebKeySet<S>>where
S::JsonWebKeySet: IsUnset,
pub fn json_web_key_set(
self,
value: JsonWebKeySet<CoreJsonWebKey>,
) -> OidcProviderBuilder<SetJsonWebKeySet<S>>where
S::JsonWebKeySet: IsUnset,
Sourcepub fn maybe_json_web_key_set(
self,
value: Option<JsonWebKeySet<CoreJsonWebKey>>,
) -> OidcProviderBuilder<SetJsonWebKeySet<S>>where
S::JsonWebKeySet: IsUnset,
pub fn maybe_json_web_key_set(
self,
value: Option<JsonWebKeySet<CoreJsonWebKey>>,
) -> OidcProviderBuilder<SetJsonWebKeySet<S>>where
S::JsonWebKeySet: IsUnset,
Sourcepub fn pkce_code_challenge(
self,
value: OidcProviderPkceCodeChallenge,
) -> OidcProviderBuilder<SetPkceCodeChallenge<S>>where
S::PkceCodeChallenge: IsUnset,
pub fn pkce_code_challenge(
self,
value: OidcProviderPkceCodeChallenge,
) -> OidcProviderBuilder<SetPkceCodeChallenge<S>>where
S::PkceCodeChallenge: IsUnset,
Sourcepub fn maybe_pkce_code_challenge(
self,
value: Option<OidcProviderPkceCodeChallenge>,
) -> OidcProviderBuilder<SetPkceCodeChallenge<S>>where
S::PkceCodeChallenge: IsUnset,
pub fn maybe_pkce_code_challenge(
self,
value: Option<OidcProviderPkceCodeChallenge>,
) -> OidcProviderBuilder<SetPkceCodeChallenge<S>>where
S::PkceCodeChallenge: IsUnset,
Auto Trait Implementations§
impl<S> Freeze for OidcProviderBuilder<S>
impl<S> RefUnwindSafe for OidcProviderBuilder<S>
impl<S> Send for OidcProviderBuilder<S>
impl<S> Sync for OidcProviderBuilder<S>
impl<S> Unpin for OidcProviderBuilder<S>
impl<S> UnwindSafe for OidcProviderBuilder<S>
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
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>
Converts
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>
Converts
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