pub struct CertificateType(pub [u8; 32]);Expand description
Newtype wrapper for certificate type identifier (32 bytes). Serializes as base64 string matching Go SDK Bytes32Base64.
Tuple Fields§
§0: [u8; 32]Implementations§
Source§impl CertificateType
impl CertificateType
pub fn from_string(s: &str) -> Result<Self, WalletError>
pub fn bytes(&self) -> &[u8; 32]
Trait Implementations§
Source§impl Clone for CertificateType
impl Clone for CertificateType
Source§fn clone(&self) -> CertificateType
fn clone(&self) -> CertificateType
Returns a duplicate 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 CertificateType
impl Debug for CertificateType
Source§impl Hash for CertificateType
impl Hash for CertificateType
Source§impl PartialEq for CertificateType
impl PartialEq for CertificateType
impl Eq for CertificateType
impl StructuralPartialEq for CertificateType
Auto Trait Implementations§
impl Freeze for CertificateType
impl RefUnwindSafe for CertificateType
impl Send for CertificateType
impl Sync for CertificateType
impl Unpin for CertificateType
impl UnsafeUnpin for CertificateType
impl UnwindSafe for CertificateType
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