pub struct Label<'l> {
pub issuer: Option<Part<'l>>,
pub user: Part<'l>,
}
Available on crate feature
auth
only.Expand description
Represents authentication labels.
Fields§
§issuer: Option<Part<'l>>
The authentication issuer.
user: Part<'l>
The authentication user.
Implementations§
Source§impl<'l> Label<'l>
impl<'l> Label<'l>
Sourcepub fn builder() -> LabelBuilder<'l>
pub fn builder() -> LabelBuilder<'l>
Create an instance of Label
using the builder syntax
Source§impl<'l> Label<'l>
impl<'l> Label<'l>
Sourcepub fn from_parts(parts: Parts<'l>) -> Self
pub fn from_parts(parts: Parts<'l>) -> Self
Constructs Self
from parts.
Sourcepub fn into_parts(self) -> Parts<'l>
pub fn into_parts(self) -> Parts<'l>
Consumes Self
, returning the contained parts.
Source§impl Label<'_>
impl Label<'_>
Sourcepub fn decode<S: AsRef<str>>(string: S) -> Result<Self, DecodeError>
pub fn decode<S: AsRef<str>>(string: S) -> Result<Self, DecodeError>
Decodes the label from the given string.
§Errors
Returns DecodeError
if the label could not be decoded.
Trait Implementations§
Source§impl<'de, 'l> Deserialize<'de> for Label<'l>
impl<'de, 'l> Deserialize<'de> for Label<'l>
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl<'l> Eq for Label<'l>
impl<'l> StructuralPartialEq for Label<'l>
Auto Trait Implementations§
impl<'l> Freeze for Label<'l>
impl<'l> RefUnwindSafe for Label<'l>
impl<'l> Send for Label<'l>
impl<'l> Sync for Label<'l>
impl<'l> Unpin for Label<'l>
impl<'l> UnwindSafe for Label<'l>
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