pub struct DoorView {
pub id: String,
pub building_id: String,
pub x: f32,
pub y: f32,
pub open: bool,
pub portal: Option<String>,
pub locked: bool,
pub accessible: bool,
pub lock_id: Option<Uuid>,
}Fields§
§id: String§building_id: String§x: f32§y: f32§open: bool§portal: Option<String>§locked: boolExterior door locked (player buildings). Locked doors cannot be opened until unlocked.
accessible: boolObserver can open/close/enter (!locked). Key is only for lock/unlock.
lock_id: Option<Uuid>Trait Implementations§
Source§impl<'de> Deserialize<'de> for DoorView
impl<'de> Deserialize<'de> for DoorView
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
impl StructuralPartialEq for DoorView
Auto Trait Implementations§
impl Freeze for DoorView
impl RefUnwindSafe for DoorView
impl Send for DoorView
impl Sync for DoorView
impl Unpin for DoorView
impl UnsafeUnpin for DoorView
impl UnwindSafe for DoorView
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