pub struct Network { /* private fields */ }Expand description
A Stellar Network.
Implementations§
Source§impl Network
impl Network
Sourcepub fn new_public() -> Network
pub fn new_public() -> Network
Create new network with the same passphrase as SDF public network.
Sourcepub fn passphrase(&self) -> &str
pub fn passphrase(&self) -> &str
Retrieves the network passphrase.
Sourcepub fn network_id(&self) -> Vec<u8> ⓘ
pub fn network_id(&self) -> Vec<u8> ⓘ
Retrieves 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