#[non_exhaustive]pub struct ContractMetadataBuilder { /* private fields */ }
Expand description
A builder for ContractMetadata
.
Implementations§
source§impl ContractMetadataBuilder
impl ContractMetadataBuilder
sourcepub fn set_symbol(self, input: Option<String>) -> Self
pub fn set_symbol(self, input: Option<String>) -> Self
The symbol of the token contract.
sourcepub fn get_symbol(&self) -> &Option<String>
pub fn get_symbol(&self) -> &Option<String>
The symbol of the token contract.
sourcepub fn set_decimals(self, input: Option<i32>) -> Self
pub fn set_decimals(self, input: Option<i32>) -> Self
The decimals used by the token contract.
sourcepub fn get_decimals(&self) -> &Option<i32>
pub fn get_decimals(&self) -> &Option<i32>
The decimals used by the token contract.
sourcepub fn build(self) -> ContractMetadata
pub fn build(self) -> ContractMetadata
Consumes the builder and constructs a ContractMetadata
.
Trait Implementations§
source§impl Clone for ContractMetadataBuilder
impl Clone for ContractMetadataBuilder
source§fn clone(&self) -> ContractMetadataBuilder
fn clone(&self) -> ContractMetadataBuilder
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 Debug for ContractMetadataBuilder
impl Debug for ContractMetadataBuilder
source§impl Default for ContractMetadataBuilder
impl Default for ContractMetadataBuilder
source§fn default() -> ContractMetadataBuilder
fn default() -> ContractMetadataBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq for ContractMetadataBuilder
impl PartialEq for ContractMetadataBuilder
source§fn eq(&self, other: &ContractMetadataBuilder) -> bool
fn eq(&self, other: &ContractMetadataBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContractMetadataBuilder
Auto Trait Implementations§
impl RefUnwindSafe for ContractMetadataBuilder
impl Send for ContractMetadataBuilder
impl Sync for ContractMetadataBuilder
impl Unpin for ContractMetadataBuilder
impl UnwindSafe for ContractMetadataBuilder
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Creates a shared type from an unshared type.