Struct near_crypto::KeyFile[][src]

pub struct KeyFile {
    pub account_id: String,
    pub public_key: PublicKey,
    pub secret_key: SecretKey,
}

Fields

account_id: Stringpublic_key: PublicKeysecret_key: SecretKey

Implementations

impl KeyFile[src]

pub fn write_to_file(&self, path: &Path)[src]

pub fn from_file(path: &Path) -> Self[src]

Trait Implementations

impl<'de> Deserialize<'de> for KeyFile[src]

impl From<&'_ InMemorySigner> for KeyFile[src]

impl From<Arc<InMemorySigner>> for KeyFile[src]

impl From<KeyFile> for InMemorySigner[src]

impl Serialize for KeyFile[src]

Auto Trait Implementations

impl RefUnwindSafe for KeyFile

impl Send for KeyFile

impl Sync for KeyFile

impl Unpin for KeyFile

impl UnwindSafe for KeyFile

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,