Enum wallet::account::EitherAccount
source · pub enum EitherAccount {
Seed(Account<Ed25519>),
Extended(Account<Ed25519Extended>),
}
Variants§
Implementations§
source§impl EitherAccount
impl EitherAccount
pub fn new_from_seed(seed: Seed) -> Self
pub fn new_from_key(key: SecretKey<Ed25519Extended>) -> Self
pub fn account_id(&self) -> AccountId
pub fn secret_key(&self) -> AccountSecretKey
Auto Trait Implementations§
impl RefUnwindSafe for EitherAccount
impl Send for EitherAccount
impl Sync for EitherAccount
impl Unpin for EitherAccount
impl UnwindSafe for EitherAccount
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