pub struct NetworkInfo {
pub friendbot_url: Option<String>,
pub passphrase: String,
pub protocol_version: u32,
pub latest_ledger: Option<u32>,
}Expand description
Network identity and protocol details reported by getNetwork.
latest_ledger is optional because the SDF endpoints (testnet, futurenet,
mainnet) answer getNetwork with only passphrase, protocolVersion and
friendbotUrl; a required field there made every getNetwork decode fail
on those endpoints and the error was swallowed by callers that treated the
probe as best-effort.
Fields§
§friendbot_url: Option<String>§passphrase: String§protocol_version: u32§latest_ledger: Option<u32>Trait Implementations§
Source§impl Clone for NetworkInfo
impl Clone for NetworkInfo
Source§impl Debug for NetworkInfo
impl Debug for NetworkInfo
Source§impl<'de> Deserialize<'de> for NetworkInfo
impl<'de> Deserialize<'de> for NetworkInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for NetworkInfo
impl PartialEq for NetworkInfo
impl StructuralPartialEq for NetworkInfo
Auto Trait Implementations§
impl Freeze for NetworkInfo
impl RefUnwindSafe for NetworkInfo
impl Send for NetworkInfo
impl Sync for NetworkInfo
impl Unpin for NetworkInfo
impl UnsafeUnpin for NetworkInfo
impl UnwindSafe for NetworkInfo
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