pub struct Changeset {
pub from_snapshot: String,
pub to_snapshot: String,
pub claims: Vec<GlobalClaim>,
pub root: Option<DiffNode>,
pub metadata: BTreeMap<String, String>,
pub diagnostics: Vec<Diagnostic>,
}Expand description
A structured description of how to get from one snapshot to the next.
Fields§
§from_snapshot: String§to_snapshot: String§claims: Vec<GlobalClaim>Run-scoped claims that do not belong to one tree node.
Reserved for the CFM-41 global-claim prototype; empty in current engine output.
root: Option<DiffNode>§metadata: BTreeMap<String, String>§diagnostics: Vec<Diagnostic>Implementations§
Source§impl Changeset
impl Changeset
pub fn new( from: impl Into<String>, to: impl Into<String>, root: Option<DiffNode>, ) -> Self
pub fn node_count(&self) -> usize
pub fn push_diagnostic(&mut self, diagnostic: Diagnostic)
pub fn hoist_node_diagnostics(&mut self)
pub fn dedupe_and_cap_diagnostics(&mut self, max_diagnostics: usize)
pub fn fill_missing_extract_hint_paths(&mut self, path: impl AsRef<str>)
Sourcepub fn strip_transient(&mut self)
pub fn strip_transient(&mut self)
Recursively clear session-scoped transient fields on the root and all
descendants. See DiffNode::strip_transient.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Changeset
impl<'de> Deserialize<'de> for Changeset
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 Changeset
impl RefUnwindSafe for Changeset
impl Send for Changeset
impl Sync for Changeset
impl Unpin for Changeset
impl UnsafeUnpin for Changeset
impl UnwindSafe for Changeset
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