pub struct WalletTemplateBuilder {
alias: String,
secret_key: Option<EitherEd25519SecretKey>,
delagate_alias: Option<String>,
ownership_alias: Option<String>,
initial_value: Option<Value>,
initial_tokens: HashMap<TokenName, Value>,
committee_member: bool,
}
Fields§
§alias: String
§secret_key: Option<EitherEd25519SecretKey>
§delagate_alias: Option<String>
§ownership_alias: Option<String>
§initial_value: Option<Value>
§initial_tokens: HashMap<TokenName, Value>
§committee_member: bool
Implementations§
source§impl WalletTemplateBuilder
impl WalletTemplateBuilder
pub fn new(alias: &str) -> Self
pub fn with(&mut self, value: u64) -> &mut Self
pub fn with_token(&mut self, token: TokenName, value: u64) -> &mut Self
pub fn key(&mut self, secret_key: EitherEd25519SecretKey) -> &mut Self
pub fn owns(&mut self, ownership_alias: &str) -> &mut Self
pub fn delegates_to(&mut self, delegates_to_alias: &str) -> &mut Self
pub fn committee_member(&mut self) -> &mut Self
pub fn owns_and_delegates_to(&mut self, ownership_alias: &str) -> &mut Self
pub fn build(self) -> Result<WalletTemplate, ScenarioBuilderError>
Trait Implementations§
source§impl Clone for WalletTemplateBuilder
impl Clone for WalletTemplateBuilder
source§fn clone(&self) -> WalletTemplateBuilder
fn clone(&self) -> WalletTemplateBuilder
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 moreAuto Trait Implementations§
impl RefUnwindSafe for WalletTemplateBuilder
impl Send for WalletTemplateBuilder
impl Sync for WalletTemplateBuilder
impl Unpin for WalletTemplateBuilder
impl UnwindSafe for WalletTemplateBuilder
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