pub struct ScreenDescription {
pub screenshot: Option<String>,
pub elements: Vec<ElementSummary>,
pub front_app: Option<String>,
pub summary: String,
pub captured_at: f64,
}Expand description
Aggregate screen description. elements is a DFS-collected ordered
list of the visible+enabled ElementSummary entries a reader could
name (anonymous layout containers are skipped); screenshot is an
optional base64 PNG.
frontApp and capturedAt are filled at capture. Only summary is
caller-populated. This comment used to call all three of them that,
which is how two fields stayed unconditionally empty while a CLI
help string promised a title and a status bar.
Fields§
§screenshot: Option<String>Optional base64-encoded PNG screenshot of the screen.
elements: Vec<ElementSummary>Nameable visible+enabled elements in DFS pre-order.
front_app: Option<String>Bundle id of the app this description was taken from, read from the a11y tree root’s identifier.
Deliberately not called “frontmost”: the runner reports the app
it resolved for the request, which is what a caller can act on.
None when the root carried no identifier — distinct from an
empty string, which would claim knowledge of an empty answer.
summary: StringFree-form one-line summary. The caller writes this; nothing in smix produces it.
captured_at: f64Wall-clock capture timestamp (Unix epoch milliseconds).
Trait Implementations§
Source§impl Clone for ScreenDescription
impl Clone for ScreenDescription
Source§fn clone(&self) -> ScreenDescription
fn clone(&self) -> ScreenDescription
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more