pub struct Station {
pub anchor: AnchorId,
pub kind: StationKind,
pub note: Option<String>,
}Expand description
A named place inside a node (spec-0052 §3).
Belongs to exactly one node. A connection between places is the edge’s to declare, as ever — an interior gate station seals a volume inside its own place and can never gate node-to-node traversal, so topology stays the graph’s structurally rather than by convention.
Fields§
§anchor: AnchorIdThe anchor id (anchor/<kebab>) quests reference.
Unique across the whole graph, and refused in the engine’s own namespace
— see DW_STATION_RESERVED and DW_STATION_DUPLICATE.
kind: StationKindThe station’s shape — never its purpose.
note: Option<String>Recorded judgement for the reviewer and the later per-place detail
brief. No check keys on it, for the same reason none keys on
Node::intent.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Station
impl<'de> Deserialize<'de> for Station
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 Station
impl JsonSchema for Station
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 Station
Auto Trait Implementations§
impl Freeze for Station
impl RefUnwindSafe for Station
impl Send for Station
impl Sync for Station
impl Unpin for Station
impl UnsafeUnpin for Station
impl UnwindSafe for Station
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