pub enum PublicCredential {
Key(KeyData),
Cert(Box<Certificate>),
}Expand description
Represents a public credential.
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for PublicCredential
impl Clone for PublicCredential
Source§fn clone(&self) -> PublicCredential
fn clone(&self) -> PublicCredential
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 Debug for PublicCredential
impl Debug for PublicCredential
Source§impl Decode for PublicCredential
impl Decode for PublicCredential
Source§impl Encode for PublicCredential
impl Encode for PublicCredential
Source§fn encoded_len(&self) -> Result<usize, Error>
fn encoded_len(&self) -> Result<usize, Error>
Get the length of this type encoded in bytes, prior to Base64 encoding.
Source§fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value using the provided
Writer.Source§fn encoded_len_prefixed(&self) -> Result<usize, Error>
fn encoded_len_prefixed(&self) -> Result<usize, Error>
Return the length of this type after encoding when prepended with a
uint32 length prefix.Source§fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
fn encode_prefixed(&self, writer: &mut impl Writer) -> Result<(), Error>
Encode this value, first prepending a
uint32 length prefix
set to Encode::encoded_len.Source§impl From<Certificate> for PublicCredential
impl From<Certificate> for PublicCredential
Source§fn from(value: Certificate) -> Self
fn from(value: Certificate) -> Self
Converts to this type from the input type.
Source§impl From<KeyData> for PublicCredential
impl From<KeyData> for PublicCredential
Source§impl PartialEq for PublicCredential
impl PartialEq for PublicCredential
Source§fn eq(&self, other: &PublicCredential) -> bool
fn eq(&self, other: &PublicCredential) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for PublicCredential
impl StructuralPartialEq for PublicCredential
Auto Trait Implementations§
impl Freeze for PublicCredential
impl RefUnwindSafe for PublicCredential
impl Send for PublicCredential
impl Sync for PublicCredential
impl Unpin for PublicCredential
impl UnsafeUnpin for PublicCredential
impl UnwindSafe for PublicCredential
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