#[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 ==
.