Struct stellar_base::network::Network
source · 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
Retrievs the network passphrase.
sourcepub fn network_id(&self) -> Vec<u8>
pub fn network_id(&self) -> Vec<u8>
Retrievs the network id, which is the hash of the network passphrase.
Trait Implementations§
source§impl PartialEq for Network
impl PartialEq for Network
impl Eq for Network
impl StructuralEq for Network
impl StructuralPartialEq for Network
Auto Trait Implementations§
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