Struct biscuit_auth::PrivateKey
source · pub struct PrivateKey(/* private fields */);Expand description
the private part of a KeyPair
Implementations§
source§impl PrivateKey
impl PrivateKey
sourcepub fn to_bytes_hex(&self) -> String
pub fn to_bytes_hex(&self) -> String
serializes to an hex-encoded string
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self, Format>
pub fn from_bytes(bytes: &[u8]) -> Result<Self, Format>
deserializes from a byte array
sourcepub fn from_bytes_hex(str: &str) -> Result<Self, Format>
pub fn from_bytes_hex(str: &str) -> Result<Self, Format>
deserializes from an hex-encoded string
Trait Implementations§
source§impl Clone for PrivateKey
impl Clone for PrivateKey
source§impl Debug for PrivateKey
impl Debug for PrivateKey
Auto Trait Implementations§
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
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