pub struct RelyingParty<'a> {
pub id: Cow<'a, str>,
pub name: Option<Cow<'a, str>>,
}Expand description
Relying Party information (storage-only)
Fields§
§id: Cow<'a, str>Relying party identifier (e.g., “example.com”)
name: Option<Cow<'a, str>>Human-readable name (optional)
Implementations§
Source§impl<'a> RelyingParty<'a>
impl<'a> RelyingParty<'a>
Sourcepub fn from_soft_fido2(rp: &'a RelyingParty) -> Self
pub fn from_soft_fido2(rp: &'a RelyingParty) -> Self
Create a new RelyingParty from a soft_fido2 RelyingParty (zero-copy)
Sourcepub fn to_soft_fido2(&self) -> RelyingParty
pub fn to_soft_fido2(&self) -> RelyingParty
Convert to owned soft_fido2 RelyingParty
Sourcepub fn into_owned(self) -> RelyingParty<'static>
pub fn into_owned(self) -> RelyingParty<'static>
Convert to owned version
Trait Implementations§
Source§impl<'a> Clone for RelyingParty<'a>
impl<'a> Clone for RelyingParty<'a>
Source§fn clone(&self) -> RelyingParty<'a>
fn clone(&self) -> RelyingParty<'a>
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<'a> Debug for RelyingParty<'a>
impl<'a> Debug for RelyingParty<'a>
Source§impl<'de: 'a, 'a> Deserialize<'de> for RelyingParty<'a>
impl<'de: 'a, 'a> Deserialize<'de> for RelyingParty<'a>
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<'a> Eq for RelyingParty<'a>
Source§impl<'a> PartialEq for RelyingParty<'a>
impl<'a> PartialEq for RelyingParty<'a>
Source§impl<'a> Serialize for RelyingParty<'a>
impl<'a> Serialize for RelyingParty<'a>
impl<'a> StructuralPartialEq for RelyingParty<'a>
Auto Trait Implementations§
impl<'a> Freeze for RelyingParty<'a>
impl<'a> RefUnwindSafe for RelyingParty<'a>
impl<'a> Send for RelyingParty<'a>
impl<'a> Sync for RelyingParty<'a>
impl<'a> Unpin for RelyingParty<'a>
impl<'a> UnsafeUnpin for RelyingParty<'a>
impl<'a> UnwindSafe for RelyingParty<'a>
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