Struct jormungandr_lib::interfaces::certificate::Certificate
source · pub struct Certificate(pub Certificate);
Tuple Fields§
§0: Certificate
Implementations§
source§impl Certificate
impl Certificate
Use bech32m variant to serialize a certificate as its length it’s not fixed but allow to read original bech32 formatted certificates for backward compatibility
pub fn to_bech32m(&self) -> Result<String, CertificateToBech32Error>
pub fn from_bech32(bech32: &str) -> Result<Self, CertificateFromBech32Error>
Trait Implementations§
source§impl Clone for Certificate
impl Clone for Certificate
source§fn clone(&self) -> Certificate
fn clone(&self) -> Certificate
Returns a copy of the value. Read more
1.0.0 · 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 Certificate
impl Debug for Certificate
source§impl<'de> Deserialize<'de> for Certificate
impl<'de> Deserialize<'de> for Certificate
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
source§impl DeserializeFromSlice for Certificate
impl DeserializeFromSlice for Certificate
fn deserialize_from_slice(codec: &mut Codec<&[u8]>) -> Result<Self, ReadError>
fn deserialize_validate_from_slice( codec: &mut Codec<&[u8]> ) -> Result<(), ReadError>
source§impl Display for Certificate
impl Display for Certificate
source§impl From<Certificate> for Certificate
impl From<Certificate> for Certificate
source§fn from(v: Certificate) -> Self
fn from(v: Certificate) -> Self
Converts to this type from the input type.
source§impl From<Certificate> for Certificate
impl From<Certificate> for Certificate
source§impl FromStr for Certificate
impl FromStr for Certificate
source§impl Serialize for Certificate
impl Serialize for Certificate
Auto Trait Implementations§
impl RefUnwindSafe for Certificate
impl Send for Certificate
impl Sync for Certificate
impl Unpin for Certificate
impl UnwindSafe for Certificate
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