pub struct Snapshot {
pub revision: u64,
pub tree: String,
pub root: SigNode,
pub truncated: bool,
pub pid: i32,
pub window_id: u32,
pub bundle_id: Option<String>,
pub electron: Option<ElectronEdit>,
pub observed: Option<SigNode>,
pub observed_revision: Option<u64>,
}Expand description
One saved observation. Secure-field values are already redacted in root.
Fields§
§revision: u64Structural revision.
tree: StringLast full tree text.
root: SigNodeSignature tree for the next diff.
truncated: boolWhether the full text hit a cap.
pid: i32Target pid.
window_id: u32Joined window id.
bundle_id: Option<String>Bundle id used in the file name.
electron: Option<ElectronEdit>Electron flags to restore. Absent when this process did not change them.
observed: Option<SigNode>Latest tree used to revalidate element indices.
tree --diff keeps comparing against Self::root. An element action
updates this field and leaves the diff baseline in place.
observed_revision: Option<u64>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Snapshot
impl<'de> Deserialize<'de> for Snapshot
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 Snapshot
Auto Trait Implementations§
impl Freeze for Snapshot
impl RefUnwindSafe for Snapshot
impl Send for Snapshot
impl Sync for Snapshot
impl Unpin for Snapshot
impl UnsafeUnpin for Snapshot
impl UnwindSafe for Snapshot
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