pub struct TreeReport {
pub pid: i32,
pub window_id: u32,
pub revision: u64,
pub source: String,
pub truncated: bool,
pub tree: String,
pub full_text: String,
pub diff: Option<String>,
pub app: Option<String>,
pub note: Option<String>,
pub legacy: Option<String>,
}Expand description
Observation returned to the dispatcher.
Fields§
§pid: i32Target pid.
window_id: u32Joined window id. Zero when no CG window matched.
revision: u64Hash of the structural signatures.
source: Stringax or osascript.
truncated: boolWhether the numbered text hit a cap.
tree: StringChosen text for the tree command: the diff once a baseline exists, otherwise the full text.
full_text: StringNumbered text, even when Self::tree is a diff.
diff: Option<String>Diff against the previous baseline. None when this observation created the baseline.
app: Option<String>Bundle id when known, otherwise the application name.
note: Option<String>Extra note. The osascript path sets source=osascript.
legacy: Option<String>JXA JSON when the native tree was not built.
Trait Implementations§
Source§impl Clone for TreeReport
impl Clone for TreeReport
Source§impl Debug for TreeReport
impl Debug for TreeReport
impl Eq for TreeReport
Source§impl PartialEq for TreeReport
impl PartialEq for TreeReport
impl StructuralPartialEq for TreeReport
Auto Trait Implementations§
impl Freeze for TreeReport
impl RefUnwindSafe for TreeReport
impl Send for TreeReport
impl Sync for TreeReport
impl Unpin for TreeReport
impl UnsafeUnpin for TreeReport
impl UnwindSafe for TreeReport
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.