camel case and deny (#20)

This commit is contained in:
Tomasz Drwięga
2017-11-13 20:51:30 +01:00
committed by Robert Habermeier
parent 3dfafb5ec3
commit 0ceebe6625
3 changed files with 8 additions and 6 deletions
+2 -1
View File
@@ -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,
}