#[non_exhaustive]pub struct TokenIdentifierBuilder { /* private fields */ }
Expand description
A builder for TokenIdentifier
.
Implementations§
source§impl TokenIdentifierBuilder
impl TokenIdentifierBuilder
sourcepub fn network(self, input: QueryNetwork) -> Self
pub fn network(self, input: QueryNetwork) -> Self
The blockchain network of the token.
sourcepub fn set_network(self, input: Option<QueryNetwork>) -> Self
pub fn set_network(self, input: Option<QueryNetwork>) -> Self
The blockchain network of the token.
sourcepub fn get_network(&self) -> &Option<QueryNetwork>
pub fn get_network(&self) -> &Option<QueryNetwork>
The blockchain network of the token.
sourcepub fn contract_address(self, input: impl Into<String>) -> Self
pub fn contract_address(self, input: impl Into<String>) -> Self
This is the token's contract address.
sourcepub fn set_contract_address(self, input: Option<String>) -> Self
pub fn set_contract_address(self, input: Option<String>) -> Self
This is the token's contract address.
sourcepub fn get_contract_address(&self) -> &Option<String>
pub fn get_contract_address(&self) -> &Option<String>
This is the token's contract address.
sourcepub fn set_token_id(self, input: Option<String>) -> Self
pub fn set_token_id(self, input: Option<String>) -> Self
The unique identifier of the token.
sourcepub fn get_token_id(&self) -> &Option<String>
pub fn get_token_id(&self) -> &Option<String>
The unique identifier of the token.
sourcepub fn build(self) -> TokenIdentifier
pub fn build(self) -> TokenIdentifier
Consumes the builder and constructs a TokenIdentifier
.
Trait Implementations§
source§impl Clone for TokenIdentifierBuilder
impl Clone for TokenIdentifierBuilder
source§fn clone(&self) -> TokenIdentifierBuilder
fn clone(&self) -> TokenIdentifierBuilder
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 TokenIdentifierBuilder
impl Debug for TokenIdentifierBuilder
source§impl Default for TokenIdentifierBuilder
impl Default for TokenIdentifierBuilder
source§fn default() -> TokenIdentifierBuilder
fn default() -> TokenIdentifierBuilder
Returns the “default value” for a type. Read more
source§impl PartialEq<TokenIdentifierBuilder> for TokenIdentifierBuilder
impl PartialEq<TokenIdentifierBuilder> for TokenIdentifierBuilder
source§fn eq(&self, other: &TokenIdentifierBuilder) -> bool
fn eq(&self, other: &TokenIdentifierBuilder) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TokenIdentifierBuilder
Auto Trait Implementations§
impl RefUnwindSafe for TokenIdentifierBuilder
impl Send for TokenIdentifierBuilder
impl Sync for TokenIdentifierBuilder
impl Unpin for TokenIdentifierBuilder
impl UnwindSafe for TokenIdentifierBuilder
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