pub struct Account<N: Network> { /* private fields */ }
Implementations
sourceimpl<N: Network> Account<N>
impl<N: Network> Account<N>
sourcepub fn private_key(&self) -> &PrivateKey<N>
pub fn private_key(&self) -> &PrivateKey<N>
Returns a reference to the private key.
Trait Implementations
sourceimpl<N: Network> From<PrivateKey<N>> for Account<N>
impl<N: Network> From<PrivateKey<N>> for Account<N>
sourcefn from(private_key: PrivateKey<N>) -> Self
fn from(private_key: PrivateKey<N>) -> Self
Creates an account from a private key.
Auto Trait Implementations
impl<N> RefUnwindSafe for Account<N> where
<N as Network>::AccountSeed: RefUnwindSafe,
<N as Network>::ProgramAffineCurve: RefUnwindSafe,
<N as Network>::ProgramScalarField: RefUnwindSafe,
impl<N> Send for Account<N> where
<N as Network>::AccountSeed: Send,
impl<N> Sync for Account<N> where
<N as Network>::AccountSeed: Sync,
impl<N> Unpin for Account<N> where
<N as Network>::AccountSeed: Unpin,
<N as Network>::ProgramAffineCurve: Unpin,
<N as Network>::ProgramScalarField: Unpin,
impl<N> UnwindSafe for Account<N> where
<N as Network>::AccountSeed: UnwindSafe,
<N as Network>::ProgramAffineCurve: UnwindSafe,
<N as Network>::ProgramScalarField: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Pointable for T
impl<T> Pointable for T
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more