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-house key lock, or map-building door hours closed.
Clients draw the padlock badge when locked && !open.
accessible: boolObserver can open/close/enter. False when key-locked or outside door hours.
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