Struct biscuit_auth::PublicKey
source · pub struct PublicKey(/* private fields */);Expand description
the public part of a KeyPair
Implementations§
source§impl PublicKey
impl PublicKey
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
pub fn from_proto(key: &PublicKey) -> Result<Self, Format>
pub fn to_proto(&self) -> PublicKey
pub fn print(&self) -> String
Trait Implementations§
source§impl PartialEq for PublicKey
impl PartialEq for PublicKey
source§impl RootKeyProvider for &PublicKey
impl RootKeyProvider for &PublicKey
source§impl RootKeyProvider for PublicKey
impl RootKeyProvider for PublicKey
source§impl ToAnyParam for PublicKey
impl ToAnyParam for PublicKey
fn to_any_param(&self) -> AnyParam
impl Copy for PublicKey
impl Eq for PublicKey
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§
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