physics3 0.2.0

data types for (de)serializing physics settings from physics3.json files
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use crate::Parameter;

#[derive(Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "PascalCase")]
#[serde(deny_unknown_fields)]
#[remain::sorted]
pub struct Input {
  pub reflect: bool,
  pub source: Parameter,
  #[serde(rename = "Type")]
  pub type_: String,
  pub weight: usize,
}