pub struct ContractEdge {
pub a: String,
pub b: String,
pub class: String,
pub rise: Option<i64>,
pub via: Option<ContractVolume>,
pub bar: Option<ContractBar>,
pub way: Option<ContractWay>,
}Expand description
One entry of spatial_contract.edges.
Fields§
§a: StringA declared space name, or exterior.
b: StringA declared space name, or exterior.
class: Stringwalk | stair | climb | drop | barred | vision.
rise: Option<i64>The declared level change, on the classes that carry one.
via: Option<ContractVolume>The opening or transit volume, when the edge declares one.
bar: Option<ContractBar>The bar, on a barred edge.
way: Option<ContractWay>The contingency, on a traversal edge that content opens: the region the edge is severed by as built, and which direction opening it goes.
Absent on every edge that is what it claims to be as shipped, which is why a piece that declares none writes no key at all and its metadata is byte-for-byte what it was.
Trait Implementations§
Source§impl Clone for ContractEdge
impl Clone for ContractEdge
Source§impl Debug for ContractEdge
impl Debug for ContractEdge
Source§impl<'de> Deserialize<'de> for ContractEdge
impl<'de> Deserialize<'de> for ContractEdge
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 ContractEdge
impl JsonSchema for ContractEdge
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 moreSource§impl PartialEq for ContractEdge
impl PartialEq for ContractEdge
Source§impl Serialize for ContractEdge
impl Serialize for ContractEdge
impl StructuralPartialEq for ContractEdge
Auto Trait Implementations§
impl Freeze for ContractEdge
impl RefUnwindSafe for ContractEdge
impl Send for ContractEdge
impl Sync for ContractEdge
impl Unpin for ContractEdge
impl UnsafeUnpin for ContractEdge
impl UnwindSafe for ContractEdge
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