pub struct Network { /* private fields */ }
Expand description
A Stellar Network.
Implementations§
Source§impl Network
impl Network
Sourcepub fn public_network() -> Network
pub fn public_network() -> Network
Create new network with the same passphrase as SDF public network.
Sourcepub fn test_network() -> Network
pub fn test_network() -> Network
Create new network with the same passphrase as SDF test network.
Sourcepub fn passphrase(&self) -> &str
pub fn passphrase(&self) -> &str
Return the network passphrase.
Sourcepub fn network_id(&self) -> Vec<u8> ⓘ
pub fn network_id(&self) -> Vec<u8> ⓘ
Return the network id, which is the hash of the network passphrase.
Trait Implementations§
impl Eq for Network
impl StructuralPartialEq for Network
Auto Trait Implementations§
impl Freeze for Network
impl RefUnwindSafe for Network
impl Send for Network
impl Sync for Network
impl Unpin for Network
impl UnwindSafe for Network
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