Struct chain_impl_mockchain::testing::scenario::template::WalletTemplate
source · pub struct WalletTemplate {
pub alias: String,
pub stake_pool_delegate_alias: Option<String>,
pub stake_pool_owner_alias: Option<String>,
pub secret_key: Option<EitherEd25519SecretKey>,
pub initial_value: Value,
pub initial_tokens: HashMap<TokenName, Value>,
pub committee_member: bool,
}
Fields§
§alias: String
§stake_pool_delegate_alias: Option<String>
§stake_pool_owner_alias: Option<String>
§secret_key: Option<EitherEd25519SecretKey>
§initial_value: Value
§initial_tokens: HashMap<TokenName, Value>
§committee_member: bool
Implementations§
source§impl WalletTemplate
impl WalletTemplate
pub fn new( alias: &str, initial_value: Value, initial_tokens: HashMap<TokenName, Value> ) -> Self
pub fn delegates_stake_pool(&self) -> Option<String>
pub fn owns_stake_pool(&self) -> Option<String>
pub fn secret_key(&self) -> Option<EitherEd25519SecretKey>
pub fn is_committee_member(&self) -> bool
pub fn alias(&self) -> String
Trait Implementations§
source§impl Clone for WalletTemplate
impl Clone for WalletTemplate
source§fn clone(&self) -> WalletTemplate
fn clone(&self) -> WalletTemplate
Returns a copy 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 From<WalletTemplate> for Wallet
impl From<WalletTemplate> for Wallet
source§fn from(template: WalletTemplate) -> Self
fn from(template: WalletTemplate) -> Self
Converts to this type from the input type.
source§impl Hash for WalletTemplate
impl Hash for WalletTemplate
source§impl PartialEq<WalletTemplate> for WalletTemplate
impl PartialEq<WalletTemplate> for WalletTemplate
source§fn eq(&self, other: &WalletTemplate) -> bool
fn eq(&self, other: &WalletTemplate) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for WalletTemplate
Auto Trait Implementations§
impl RefUnwindSafe for WalletTemplate
impl Send for WalletTemplate
impl Sync for WalletTemplate
impl Unpin for WalletTemplate
impl UnwindSafe for WalletTemplate
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