pub struct BriefFact {
pub id: FactId,
pub value: f64,
pub unit: Option<String>,
pub note: String,
}Expand description
One fact from the whole map’s written brief: a number with a name.
Fields§
§id: FactIdFact id (fact/<kebab>), unique within the brief.
value: f64The number itself.
unit: Option<String>What the number counts (blocks, storeys, a ratio’s none).
note: StringThe sentence of the brief this number came from, so a reader of the plan can see what the identity is holding the map to.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for BriefFact
impl<'de> Deserialize<'de> for BriefFact
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 JsonSchema for BriefFact
impl JsonSchema for BriefFact
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl StructuralPartialEq for BriefFact
Auto Trait Implementations§
impl Freeze for BriefFact
impl RefUnwindSafe for BriefFact
impl Send for BriefFact
impl Sync for BriefFact
impl Unpin for BriefFact
impl UnsafeUnpin for BriefFact
impl UnwindSafe for BriefFact
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more