pub struct Connector {
pub name: String,
pub target: String,
pub local_pos: [i32; 3],
pub facing: String,
pub opening: [i32; 2],
pub joint: String,
}Expand description
One jigsaw socket declared by a prefab.
local_pos is the socket’s wall cell (bottom-centre of the opening) in the
prefab’s local coordinates; facing is the cardinal direction the opening
faces outward. Two sockets mate by placing the child so its socket sits one
block beyond the parent’s, facing the opposite way.
Fields§
§name: StringJigsaw name.
target: StringJigsaw target.
local_pos: [i32; 3]The socket’s wall cell, local coords [x, y, z].
facing: StringCardinal direction the opening faces outward.
opening: [i32; 2]Opening extent [width, height].
joint: StringJigsaw joint.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Connector
impl<'de> Deserialize<'de> for Connector
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 Connector
impl JsonSchema for Connector
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 Connector
Auto Trait Implementations§
impl Freeze for Connector
impl RefUnwindSafe for Connector
impl Send for Connector
impl Sync for Connector
impl Unpin for Connector
impl UnsafeUnpin for Connector
impl UnwindSafe for Connector
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