pub struct ServerOldFormat {
pub name: String,
pub host: String,
pub index: i64,
pub peer_id_index: i64,
pub network_environment: String,
pub username: Option<String>,
pub ipv4: Option<String>,
pub node_name: Option<String>,
pub external_host: Option<String>,
pub reward_address: Option<String>,
pub jump_host: Option<String>,
pub party_config: Option<NodePartyConfig>,
}Fields§
§name: String§host: String§index: i64§peer_id_index: i64§network_environment: String§username: Option<String>§ipv4: Option<String>§node_name: Option<String>§external_host: Option<String>§reward_address: Option<String>§jump_host: Option<String>§party_config: Option<NodePartyConfig>Implementations§
Source§impl ServerOldFormat
impl ServerOldFormat
pub fn network_environment(&self) -> NetworkEnvironment
pub fn node_metadata(&self, nmd: &mut NodeMetadata) -> RgResult<()>
pub fn peer_data( servers: Vec<ServerOldFormat>, peer_data: &mut PeerMetadata, peer_id_index: i64, pk: HashMap<i64, PublicKey>, checksum: String, net: NetworkEnvironment, reward_address: Option<Address>, ) -> &mut PeerMetadata
Trait Implementations§
Source§impl Clone for ServerOldFormat
impl Clone for ServerOldFormat
Source§fn clone(&self) -> ServerOldFormat
fn clone(&self) -> ServerOldFormat
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerOldFormat
impl Debug for ServerOldFormat
Source§impl Default for ServerOldFormat
impl Default for ServerOldFormat
Source§fn default() -> ServerOldFormat
fn default() -> ServerOldFormat
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ServerOldFormat
impl<'de> Deserialize<'de> for ServerOldFormat
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 ServerOldFormat
impl PartialEq for ServerOldFormat
Source§impl Serialize for ServerOldFormat
impl Serialize for ServerOldFormat
impl Eq for ServerOldFormat
impl StructuralPartialEq for ServerOldFormat
Auto Trait Implementations§
impl Freeze for ServerOldFormat
impl RefUnwindSafe for ServerOldFormat
impl Send for ServerOldFormat
impl Sync for ServerOldFormat
impl Unpin for ServerOldFormat
impl UnwindSafe for ServerOldFormat
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more