pub struct Object {
pub uid: Option<String>,
pub at: Option<[u16; 2]>,
pub proto: String,
pub layer: Option<String>,
pub sub_layer: i16,
pub z: i32,
pub fields: Vec<(String, FieldValue)>,
pub portal: Option<Portal>,
pub inventory: Vec<Object>,
pub custom: Option<String>,
}Expand description
A placed object or an inventory entry.
Fields§
§uid: Option<String>The object’s stable ID, unique in the world.
at: Option<[u16; 2]>Chunk-local tile; None for inventory entries.
proto: String§layer: Option<String>§sub_layer: i16§z: i32§fields: Vec<(String, FieldValue)>§portal: Option<Portal>§inventory: Vec<Object>§custom: Option<String>Canonical JSON of the custom object.
Trait Implementations§
impl StructuralPartialEq for Object
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl Send for Object
impl Sync for Object
impl Unpin for Object
impl UnsafeUnpin for Object
impl UnwindSafe for Object
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