pub struct NetworkIdentifier {
pub blockchain: String,
pub network: String,
pub sub_network_identifier: Option<SubNetworkIdentifier>,
}
Expand description
NetworkIdentifier : The network_identifier specifies which network a particular object is associated with.
Fields§
§blockchain: String
§network: String
If a blockchain has a specific chain-id or network identifier, it should go in this field. It is up to the client to determine which network-specific identifier is mainnet or testnet.
sub_network_identifier: Option<SubNetworkIdentifier>
Implementations§
source§impl NetworkIdentifier
impl NetworkIdentifier
sourcepub fn new(blockchain: String, network: String) -> NetworkIdentifier
pub fn new(blockchain: String, network: String) -> NetworkIdentifier
The network_identifier specifies which network a particular object is associated with.
Trait Implementations§
source§impl Clone for NetworkIdentifier
impl Clone for NetworkIdentifier
source§fn clone(&self) -> NetworkIdentifier
fn clone(&self) -> NetworkIdentifier
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 NetworkIdentifier
impl Debug for NetworkIdentifier
source§impl Default for NetworkIdentifier
impl Default for NetworkIdentifier
source§fn default() -> NetworkIdentifier
fn default() -> NetworkIdentifier
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for NetworkIdentifier
impl<'de> Deserialize<'de> for NetworkIdentifier
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<NetworkIdentifier> for NetworkIdentifier
impl PartialEq<NetworkIdentifier> for NetworkIdentifier
source§fn eq(&self, other: &NetworkIdentifier) -> bool
fn eq(&self, other: &NetworkIdentifier) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for NetworkIdentifier
impl Serialize for NetworkIdentifier
impl Eq for NetworkIdentifier
impl StructuralEq for NetworkIdentifier
impl StructuralPartialEq for NetworkIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for NetworkIdentifier
impl Send for NetworkIdentifier
impl Sync for NetworkIdentifier
impl Unpin for NetworkIdentifier
impl UnwindSafe for NetworkIdentifier
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