pub struct Block {
pub id: BlockId,
pub header: Header,
pub consensus: Consensus,
pub transactions: Vec<TransactionIdFragment>,
}
Fields§
§id: BlockId
§header: Header
§consensus: Consensus
§transactions: Vec<TransactionIdFragment>
Implementations§
Trait Implementations§
source§impl<'de> Deserialize<'de> for Block
impl<'de> Deserialize<'de> for Block
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 Block
impl<'de> QueryFragment<'de> for Block
§type SchemaType = Block
type SchemaType = Block
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