pub struct MintKeyPair {
pub public_key: PublicKey,
pub secret_key: SecretKey,
}
Expand description
Mint Public Private key pair
Fields§
§public_key: PublicKey
Publickey
secret_key: SecretKey
Secretkey
Implementations§
Source§impl MintKeyPair
impl MintKeyPair
Sourcepub fn from_secret_key(secret_key: SecretKey) -> MintKeyPair
pub fn from_secret_key(secret_key: SecretKey) -> MintKeyPair
MintKeyPair
from secret key
Trait Implementations§
Source§impl Clone for MintKeyPair
impl Clone for MintKeyPair
Source§fn clone(&self) -> MintKeyPair
fn clone(&self) -> MintKeyPair
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MintKeyPair
impl Debug for MintKeyPair
Source§impl<'de> Deserialize<'de> for MintKeyPair
impl<'de> Deserialize<'de> for MintKeyPair
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintKeyPair, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<MintKeyPair, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for MintKeyPair
impl PartialEq for MintKeyPair
Source§impl Serialize for MintKeyPair
impl Serialize for MintKeyPair
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for MintKeyPair
impl StructuralPartialEq for MintKeyPair
Auto Trait Implementations§
impl Freeze for MintKeyPair
impl RefUnwindSafe for MintKeyPair
impl Send for MintKeyPair
impl Sync for MintKeyPair
impl Unpin for MintKeyPair
impl UnwindSafe for MintKeyPair
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