pub struct CryptoUri { /* private fields */ }Expand description
CryptoUri: URI-based format for encoding cryptographic objects
Implementations§
Source§impl CryptoUri
impl CryptoUri
Sourcepub fn parse_dasherized(token: &str) -> Result<Self, Error>
pub fn parse_dasherized(token: &str) -> Result<Self, Error>
Parse a CryptoUri in URI-embeddable (a.k.a. “dasherized”) encoding
Sourcepub fn kind(&self) -> &CryptoUriKind
pub fn kind(&self) -> &CryptoUriKind
Return the CryptoUriKind for this URI
Sourcepub fn secret_key(&self) -> Option<&SecretKey>
pub fn secret_key(&self) -> Option<&SecretKey>
Return a SecretKey if the underlying URI is a crypto:sec:key:
Sourcepub fn is_secret_key(&self) -> bool
pub fn is_secret_key(&self) -> bool
Is this CryptoUri a crypto:sec:key:?
Sourcepub fn public_key(&self) -> Option<&PublicKey>
pub fn public_key(&self) -> Option<&PublicKey>
Return a PublicKey if the underlying URI is a crypto:pub:key:
Sourcepub fn is_public_key(&self) -> bool
pub fn is_public_key(&self) -> bool
Is this CryptoUri a crypto:pub:key:?
Sourcepub fn signature(&self) -> Option<&Signature>
pub fn signature(&self) -> Option<&Signature>
Return a Signature if the underlying URI is a crypto:pub:sig:
Sourcepub fn is_signature(&self) -> bool
pub fn is_signature(&self) -> bool
Is this CryptoUri a crypto:pub:sig:?
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CryptoUri
impl RefUnwindSafe for CryptoUri
impl Send for CryptoUri
impl Sync for CryptoUri
impl Unpin for CryptoUri
impl UnwindSafe for CryptoUri
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