pub struct SceneDelta {
pub revision: u64,
pub preview: bool,
pub reset: bool,
pub upserts: Vec<SceneItem>,
pub removals: Vec<u64>,
pub order: Option<Vec<u64>>,
}Expand description
Incremental scene update.
Fields§
§revision: u64Document revision the delta brings the scene to.
preview: boolThe delta shows transient preview state on top of revision.
reset: boolDrop every item before applying.
upserts: Vec<SceneItem>New or changed items.
removals: Vec<u64>Removed item IDs.
order: Option<Vec<u64>>Complete draw order (entity IDs bottom to top) when it changed.
Implementations§
Source§impl SceneDelta
impl SceneDelta
Trait Implementations§
Source§impl Clone for SceneDelta
impl Clone for SceneDelta
Source§fn clone(&self) -> SceneDelta
fn clone(&self) -> SceneDelta
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SceneDelta
impl Debug for SceneDelta
Source§impl Default for SceneDelta
impl Default for SceneDelta
Source§fn default() -> SceneDelta
fn default() -> SceneDelta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SceneDelta
impl<'de> Deserialize<'de> for SceneDelta
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 PartialEq for SceneDelta
impl PartialEq for SceneDelta
Source§fn eq(&self, other: &SceneDelta) -> bool
fn eq(&self, other: &SceneDelta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for SceneDelta
impl Serialize for SceneDelta
impl StructuralPartialEq for SceneDelta
Auto Trait Implementations§
impl Freeze for SceneDelta
impl RefUnwindSafe for SceneDelta
impl Send for SceneDelta
impl Sync for SceneDelta
impl Unpin for SceneDelta
impl UnsafeUnpin for SceneDelta
impl UnwindSafe for SceneDelta
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