pub struct AccountKeyPair {
pub public_key: PublicKey,
pub private_key: SecretKey,
}Expand description
A struct representing a pair of public and private keys for an account.
This might be useful for getting keys from a file. E.g. ~/.near-credentials.
Fields§
§public_key: PublicKey§private_key: SecretKeyImplementations§
Source§impl AccountKeyPair
impl AccountKeyPair
fn load_access_key_file(path: &Path) -> Result<Self, AccessKeyFileError>
Trait Implementations§
Source§impl Clone for AccountKeyPair
impl Clone for AccountKeyPair
Source§fn clone(&self) -> AccountKeyPair
fn clone(&self) -> AccountKeyPair
Returns a duplicate of the value. Read more
1.0.0 · 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 AccountKeyPair
impl Debug for AccountKeyPair
Source§impl<'de> Deserialize<'de> for AccountKeyPair
impl<'de> Deserialize<'de> for AccountKeyPair
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for AccountKeyPair
impl RefUnwindSafe for AccountKeyPair
impl Send for AccountKeyPair
impl Sync for AccountKeyPair
impl Unpin for AccountKeyPair
impl UnwindSafe for AccountKeyPair
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