pub struct ApiKey(/* private fields */);
Implementations§
Source§impl ApiKey
impl ApiKey
pub fn from_secret(secret: &str) -> Result<Self>
pub fn new() -> Result<Self>
pub fn certify(&self, role: Role, owner: &Signer) -> Result<Cert>
pub fn build(&self, role: Role, owner: &PublicKey) -> Result<Vec<u8>>
pub fn key(&self) -> Result<String>
pub fn pubkey_from_str(key: &str) -> Result<PublicKey>
pub fn secret(&self) -> Result<String>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ApiKey
impl RefUnwindSafe for ApiKey
impl Send for ApiKey
impl Sync for ApiKey
impl Unpin for ApiKey
impl UnwindSafe for ApiKey
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