#[non_exhaustive]pub struct SamlConfigOptionsBuilder { /* private fields */ }
Expand description
A builder for SamlConfigOptions
.
Implementations§
source§impl SamlConfigOptionsBuilder
impl SamlConfigOptionsBuilder
sourcepub fn metadata(self, input: impl Into<String>) -> Self
pub fn metadata(self, input: impl Into<String>) -> Self
The XML IdP metadata file generated from your identity provider.
This field is required.sourcepub fn set_metadata(self, input: Option<String>) -> Self
pub fn set_metadata(self, input: Option<String>) -> Self
The XML IdP metadata file generated from your identity provider.
sourcepub fn get_metadata(&self) -> &Option<String>
pub fn get_metadata(&self) -> &Option<String>
The XML IdP metadata file generated from your identity provider.
sourcepub fn user_attribute(self, input: impl Into<String>) -> Self
pub fn user_attribute(self, input: impl Into<String>) -> Self
A user attribute for this SAML integration.
sourcepub fn set_user_attribute(self, input: Option<String>) -> Self
pub fn set_user_attribute(self, input: Option<String>) -> Self
A user attribute for this SAML integration.
sourcepub fn get_user_attribute(&self) -> &Option<String>
pub fn get_user_attribute(&self) -> &Option<String>
A user attribute for this SAML integration.
sourcepub fn group_attribute(self, input: impl Into<String>) -> Self
pub fn group_attribute(self, input: impl Into<String>) -> Self
The group attribute for this SAML integration.
sourcepub fn set_group_attribute(self, input: Option<String>) -> Self
pub fn set_group_attribute(self, input: Option<String>) -> Self
The group attribute for this SAML integration.
sourcepub fn get_group_attribute(&self) -> &Option<String>
pub fn get_group_attribute(&self) -> &Option<String>
The group attribute for this SAML integration.
sourcepub fn session_timeout(self, input: i32) -> Self
pub fn session_timeout(self, input: i32) -> Self
The session timeout, in minutes. Default is 60 minutes (12 hours).
sourcepub fn set_session_timeout(self, input: Option<i32>) -> Self
pub fn set_session_timeout(self, input: Option<i32>) -> Self
The session timeout, in minutes. Default is 60 minutes (12 hours).
sourcepub fn get_session_timeout(&self) -> &Option<i32>
pub fn get_session_timeout(&self) -> &Option<i32>
The session timeout, in minutes. Default is 60 minutes (12 hours).
sourcepub fn build(self) -> Result<SamlConfigOptions, BuildError>
pub fn build(self) -> Result<SamlConfigOptions, BuildError>
Consumes the builder and constructs a SamlConfigOptions
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for SamlConfigOptionsBuilder
impl Clone for SamlConfigOptionsBuilder
source§fn clone(&self) -> SamlConfigOptionsBuilder
fn clone(&self) -> SamlConfigOptionsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SamlConfigOptionsBuilder
impl Debug for SamlConfigOptionsBuilder
source§impl Default for SamlConfigOptionsBuilder
impl Default for SamlConfigOptionsBuilder
source§fn default() -> SamlConfigOptionsBuilder
fn default() -> SamlConfigOptionsBuilder
source§impl PartialEq for SamlConfigOptionsBuilder
impl PartialEq for SamlConfigOptionsBuilder
source§fn eq(&self, other: &SamlConfigOptionsBuilder) -> bool
fn eq(&self, other: &SamlConfigOptionsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SamlConfigOptionsBuilder
Auto Trait Implementations§
impl Freeze for SamlConfigOptionsBuilder
impl RefUnwindSafe for SamlConfigOptionsBuilder
impl Send for SamlConfigOptionsBuilder
impl Sync for SamlConfigOptionsBuilder
impl Unpin for SamlConfigOptionsBuilder
impl UnwindSafe for SamlConfigOptionsBuilder
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