Struct shuttle_sdk::Network
[−]
[src]
pub struct Network { /* fields omitted */ }A Stellar Network.
Methods
impl Network[src]
fn new(passphrase: String) -> Network[src]
Create new network with passphrase.
fn public_network() -> Network[src]
Create new network with the same passphrase as SDF public network.
fn test_network() -> Network[src]
Create new network with the same passphrase as SDF test network.
fn passphrase(&self) -> &str[src]
Return the network passphrase.
fn network_id(&self) -> Vec<u8>[src]
Return the network id, which is the hash of the network passphrase.
Trait Implementations
impl Clone for Network[src]
fn clone(&self) -> Network[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more