library: render: deserialization: error on unknown

This commit is contained in:
Bruno BELANYI 2020-03-26 18:20:30 +01:00
parent 0f6b81e40c
commit f03880799b

View file

@ -299,6 +299,7 @@ impl Scene {
}
#[derive(Debug, PartialEq, Deserialize)]
#[serde(deny_unknown_fields)]
struct SerializedScene {
camera: Camera,
#[serde(default)]