pub struct SpMetadataConfig {
pub name_id_format: Vec<NameIdFormat>,
pub single_logout_service: Vec<SloEndpoint>,
pub assertion_consumer_service: Vec<AcsEndpoint>,
pub elements_order: Option<Vec<String>>,
}Expand description
Local SP metadata inputs used by typed configuration.
Fields§
§name_id_format: Vec<NameIdFormat><NameIDFormat> values advertised by the SP.
single_logout_service: Vec<SloEndpoint>SingleLogoutService endpoints.
assertion_consumer_service: Vec<AcsEndpoint>AssertionConsumerService endpoints.
elements_order: Option<Vec<String>>Element ordering profile for generated metadata.
Implementations§
Source§impl SpMetadataConfig
impl SpMetadataConfig
Sourcepub fn new(assertion_consumer_service: Vec<AcsEndpoint>) -> Self
pub fn new(assertion_consumer_service: Vec<AcsEndpoint>) -> Self
Create SP metadata input with required ACS endpoints visible at the call site.
This constructor does not validate the endpoint list. Use
Self::try_new for caller-provided endpoint collections.
Sourcepub fn try_new(
assertion_consumer_service: Vec<AcsEndpoint>,
) -> Result<Self, SamlError>
pub fn try_new( assertion_consumer_service: Vec<AcsEndpoint>, ) -> Result<Self, SamlError>
Validate and create SP metadata input.
§Errors
Returns SamlError::MissingMetadata when no ACS endpoint is supplied.
Trait Implementations§
Source§impl Clone for SpMetadataConfig
impl Clone for SpMetadataConfig
Source§fn clone(&self) -> SpMetadataConfig
fn clone(&self) -> SpMetadataConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SpMetadataConfig
impl Debug for SpMetadataConfig
impl Eq for SpMetadataConfig
Source§impl PartialEq for SpMetadataConfig
impl PartialEq for SpMetadataConfig
impl StructuralPartialEq for SpMetadataConfig
Auto Trait Implementations§
impl Freeze for SpMetadataConfig
impl RefUnwindSafe for SpMetadataConfig
impl Send for SpMetadataConfig
impl Sync for SpMetadataConfig
impl Unpin for SpMetadataConfig
impl UnsafeUnpin for SpMetadataConfig
impl UnwindSafe for SpMetadataConfig
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