mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-14 00:31:07 +00:00
camel case and deny (#20)
This commit is contained in:
committed by
Robert Habermeier
parent
3dfafb5ec3
commit
0ceebe6625
@@ -32,13 +32,14 @@ impl From<u64> for Id {
|
||||
|
||||
/// A parachain block proposal.
|
||||
#[derive(Debug, PartialEq, Eq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
#[serde(deny_unknown_fields)]
|
||||
pub struct Proposal {
|
||||
/// The ID of the parachain this is a proposal for.
|
||||
pub parachain: Id,
|
||||
/// Parachain block header bytes.
|
||||
pub header: Header,
|
||||
/// Hash of data necessary to prove validity of the header.
|
||||
#[serde(rename="proofHash")]
|
||||
pub proof_hash: ProofHash,
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user