pub struct ChainInfo {
pub base_chain_height: U64,
pub name: String,
pub peer_count: i32,
pub latest_block: Block,
pub consensus_parameters: ConsensusParameters,
}
Fields§
§base_chain_height: U64
§name: String
§peer_count: i32
§latest_block: Block
§consensus_parameters: ConsensusParameters
Trait Implementations§
source§impl<'de> Deserialize<'de> for ChainInfo
impl<'de> Deserialize<'de> for ChainInfo
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<'de> QueryFragment<'de> for ChainInfo
impl<'de> QueryFragment<'de> for ChainInfo
§type SchemaType = ChainInfo
type SchemaType = ChainInfo
The type in a schema that this
QueryFragment
representssource§fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::Variables>)
fn query(builder: SelectionBuilder<'_, Self::SchemaType, Self::Variables>)
Adds this fragment to the query being built by
builder