pub struct Attribute { /* private fields */ }Expand description
SAML attribute with one or more values.
Implementations§
Source§impl Attribute
impl Attribute
Sourcepub fn new(
name: impl Into<String>,
name_format: Option<String>,
values: Vec<AttributeValue>,
) -> Self
pub fn new( name: impl Into<String>, name_format: Option<String>, values: Vec<AttributeValue>, ) -> Self
Create a SAML attribute.
Sourcepub fn name_format(&self) -> Option<&str>
pub fn name_format(&self) -> Option<&str>
Attribute name format, when extracted.
Sourcepub fn values(&self) -> &[AttributeValue]
pub fn values(&self) -> &[AttributeValue]
Attribute values.
Trait Implementations§
impl Eq for Attribute
impl StructuralPartialEq for Attribute
Auto Trait Implementations§
impl Freeze for Attribute
impl RefUnwindSafe for Attribute
impl Send for Attribute
impl Sync for Attribute
impl Unpin for Attribute
impl UnsafeUnpin for Attribute
impl UnwindSafe for Attribute
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