[][src]Struct stellar_base::network::Network

pub struct Network { /* fields omitted */ }

A Stellar Network.

Implementations

impl Network[src]

pub fn new(passphrase: String) -> Network[src]

Create new network with passphrase.

pub fn new_public() -> Network[src]

Create new network with the same passphrase as SDF public network.

pub fn new_test() -> Network[src]

Create new network with the same passphrase as SDF test network.

pub fn passphrase(&self) -> &str[src]

Retrievs the network passphrase.

pub fn network_id(&self) -> Vec<u8>[src]

Retrievs the network id, which is the hash of the network passphrase.

Trait Implementations

impl Clone for Network[src]

impl Debug for Network[src]

impl Eq for Network[src]

impl PartialEq<Network> for Network[src]

impl StructuralEq for Network[src]

impl StructuralPartialEq for Network[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.