pub struct ContractFace {
pub space: String,
pub class: String,
pub dir: String,
pub opening: Region,
}Expand description
One face of the piece’s face contract.
Fields§
§space: StringThe space the way in or out belongs to.
class: StringThe edge’s class: walk | stair | climb | drop | barred | vision.
dir: StringWhich side of the piece: east | west | up | down | south |
north.
opening: RegionThe opening, as an inclusive local cell range flat in the face’s own axis.
Trait Implementations§
Source§impl Clone for ContractFace
impl Clone for ContractFace
Source§impl Debug for ContractFace
impl Debug for ContractFace
Source§impl<'de> Deserialize<'de> for ContractFace
impl<'de> Deserialize<'de> for ContractFace
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 ContractFace
impl JsonSchema for ContractFace
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 ContractFace
impl PartialEq for ContractFace
Source§impl Serialize for ContractFace
impl Serialize for ContractFace
impl StructuralPartialEq for ContractFace
Auto Trait Implementations§
impl Freeze for ContractFace
impl RefUnwindSafe for ContractFace
impl Send for ContractFace
impl Sync for ContractFace
impl Unpin for ContractFace
impl UnsafeUnpin for ContractFace
impl UnwindSafe for ContractFace
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