pub struct EntitySnapshot {Show 13 fields
pub original_id: EntityId,
pub position: Option<Position>,
pub velocity: Option<Velocity>,
pub elevator: Option<Elevator>,
pub stop: Option<Stop>,
pub rider: Option<Rider>,
pub route: Option<Route>,
pub line: Option<Line>,
pub patience: Option<Patience>,
pub preferences: Option<Preferences>,
pub access_control: Option<AccessControl>,
pub disabled: bool,
pub service_mode: Option<ServiceMode>,
}Expand description
Serializable snapshot of a single entity’s components.
Fields§
§original_id: EntityIdThe original EntityId (used for remapping cross-references on restore).
position: Option<Position>Position component (if present).
velocity: Option<Velocity>Velocity component (if present).
elevator: Option<Elevator>Elevator component (if present).
stop: Option<Stop>Stop component (if present).
rider: Option<Rider>Rider component (if present).
route: Option<Route>Route component (if present).
line: Option<Line>Line component (if present).
patience: Option<Patience>Patience component (if present).
preferences: Option<Preferences>Preferences component (if present).
access_control: Option<AccessControl>Access control component (if present).
disabled: boolWhether this entity is disabled.
service_mode: Option<ServiceMode>Service mode (if present).
Trait Implementations§
Source§impl Clone for EntitySnapshot
impl Clone for EntitySnapshot
Source§fn clone(&self) -> EntitySnapshot
fn clone(&self) -> EntitySnapshot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EntitySnapshot
impl Debug for EntitySnapshot
Source§impl<'de> Deserialize<'de> for EntitySnapshot
impl<'de> Deserialize<'de> for EntitySnapshot
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
Auto Trait Implementations§
impl Freeze for EntitySnapshot
impl RefUnwindSafe for EntitySnapshot
impl Send for EntitySnapshot
impl Sync for EntitySnapshot
impl Unpin for EntitySnapshot
impl UnsafeUnpin for EntitySnapshot
impl UnwindSafe for EntitySnapshot
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