pub struct Ed25519Keypair {
pub public_key_hex: String,
pub secret_key_hex: String,
pub public_key: Vec<u8>,
pub secret_key: Vec<u8>,
}Expand description
Locally generated Ed25519 keypair for API key creation.
Debug redacts secret material so accidental logging cannot leak the
private key. Read secret_key_hex / secret_key explicitly when you need
the secret.
Fields§
§public_key_hex: String§secret_key_hex: String§public_key: Vec<u8>§secret_key: Vec<u8>Trait Implementations§
Source§impl Clone for Ed25519Keypair
impl Clone for Ed25519Keypair
Source§fn clone(&self) -> Ed25519Keypair
fn clone(&self) -> Ed25519Keypair
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 Ed25519Keypair
impl Debug for Ed25519Keypair
impl Eq for Ed25519Keypair
Source§impl PartialEq for Ed25519Keypair
impl PartialEq for Ed25519Keypair
impl StructuralPartialEq for Ed25519Keypair
Auto Trait Implementations§
impl Freeze for Ed25519Keypair
impl RefUnwindSafe for Ed25519Keypair
impl Send for Ed25519Keypair
impl Sync for Ed25519Keypair
impl Unpin for Ed25519Keypair
impl UnsafeUnpin for Ed25519Keypair
impl UnwindSafe for Ed25519Keypair
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.