pub struct ScreenDescription {
pub screenshot: Option<String>,
pub elements: Vec<ElementSummary>,
pub front_app: String,
pub summary: String,
pub captured_at: f64,
}Expand description
Aggregate screen description — Mirrors TS ScreenDescription in
src/core/schemas.ts:80-88. elements is a DFS-collected ordered
list of visible+enabled ElementSummary entries; screenshot is
optional base64 PNG; frontApp / summary / captured_at are
caller-populated metadata.
Fields§
§screenshot: Option<String>Optional base64-encoded PNG screenshot of the screen.
elements: Vec<ElementSummary>Visible+enabled elements in DFS pre-order.
front_app: StringBundle id of the frontmost app at capture time.
summary: StringFree-form one-line summary (caller-populated).
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
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ScreenDescription
impl Debug for ScreenDescription
Source§impl Default for ScreenDescription
impl Default for ScreenDescription
Source§fn default() -> ScreenDescription
fn default() -> ScreenDescription
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ScreenDescription
impl<'de> Deserialize<'de> for ScreenDescription
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 ScreenDescription
impl RefUnwindSafe for ScreenDescription
impl Send for ScreenDescription
impl Sync for ScreenDescription
impl Unpin for ScreenDescription
impl UnsafeUnpin for ScreenDescription
impl UnwindSafe for ScreenDescription
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