Struct picky::key::PublicKey [−][src]
#[repr(transparent)]pub struct PublicKey(_);
Implementations
impl PublicKey
[src]
impl PublicKey
[src]pub fn to_der(&self) -> Result<Vec<u8>, KeyError>
[src]
pub fn to_pem(&self) -> Result<String, KeyError>
[src]
pub fn from_pem(pem: &Pem<'_>) -> Result<Self, KeyError>
[src]
pub fn from_pem_str(pem_str: &str) -> Result<Self, KeyError>
[src]
pub fn from_der<T: ?Sized + AsRef<[u8]>>(der: &T) -> Result<Self, KeyError>
[src]
pub fn from_rsa_der<T: ?Sized + AsRef<[u8]>>(der: &T) -> Result<Self, KeyError>
[src]
Trait Implementations
impl AsRef<SubjectPublicKeyInfo> for PublicKey
[src]
impl AsRef<SubjectPublicKeyInfo> for PublicKey
[src]fn as_ref(&self) -> &SubjectPublicKeyInfo
[src]
fn as_ref(&self) -> &SubjectPublicKeyInfo
[src]Performs the conversion.
impl<'a> From<&'a SubjectPublicKeyInfo> for &'a PublicKey
[src]
impl<'a> From<&'a SubjectPublicKeyInfo> for &'a PublicKey
[src]fn from(spki: &'a SubjectPublicKeyInfo) -> Self
[src]
fn from(spki: &'a SubjectPublicKeyInfo) -> Self
[src]Performs the conversion.
impl From<PrivateKey> for PublicKey
[src]
impl From<PrivateKey> for PublicKey
[src]fn from(key: PrivateKey) -> Self
[src]
fn from(key: PrivateKey) -> Self
[src]Performs the conversion.
impl From<SubjectPublicKeyInfo> for PublicKey
[src]
impl From<SubjectPublicKeyInfo> for PublicKey
[src]fn from(spki: SubjectPublicKeyInfo) -> Self
[src]
fn from(spki: SubjectPublicKeyInfo) -> Self
[src]Performs the conversion.
impl StructuralPartialEq for PublicKey
[src]
Auto Trait Implementations
impl RefUnwindSafe for PublicKey
impl Send for PublicKey
impl Sync for PublicKey
impl Unpin for PublicKey
impl UnwindSafe for PublicKey
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,