First round of snapshot tests for patch_compute

This commit is contained in:
Lucien Greathouse
2019-09-30 17:00:12 -07:00
parent 3678ddfa36
commit b512e707a5
9 changed files with 128 additions and 12 deletions

View File

@@ -3,6 +3,7 @@
use std::{borrow::Cow, collections::HashMap};
use rbx_dom_weak::{RbxId, RbxTree, RbxValue};
use serde::{Deserialize, Serialize};
use super::InstanceMetadata;
@@ -13,7 +14,7 @@ use super::InstanceMetadata;
// Possible future improvements:
// - Use refcounted/interned strings
// - Replace use of RbxValue with a sum of RbxValue + borrowed value
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct InstanceSnapshot<'source> {
/// A temporary ID applied to the snapshot that's used for Ref properties.
pub snapshot_id: Option<RbxId>,