Struct hersir::config::WalletTemplateBuilder
source · pub struct WalletTemplateBuilder {
alias: Option<WalletAlias>,
address: Option<String>,
value: u64,
node_alias: Option<NodeAlias>,
discrimination: Discrimination,
tokens: HashMap<TokenIdentifier, u64>,
}
Fields§
§alias: Option<WalletAlias>
§address: Option<String>
§value: u64
§node_alias: Option<NodeAlias>
§discrimination: Discrimination
§tokens: HashMap<TokenIdentifier, u64>
Implementations§
source§impl WalletTemplateBuilder
impl WalletTemplateBuilder
pub fn new<S: Into<WalletAlias>>(alias: S) -> Self
pub fn with_alias<S: Into<WalletAlias>>(self, alias: S) -> Self
pub fn with_address<S: Into<String>>(self, address: S) -> Self
pub fn with(self, value: u64) -> Self
pub fn with_token(self, id: TokenIdentifier, amount: u64) -> Self
pub fn discrimination(self, discrimination: Discrimination) -> Self
pub fn delegated_to(self, delegated_to: &str) -> Self
pub fn build(self) -> WalletTemplate
Trait Implementations§
Auto 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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request