pub struct CanvasState {
pub app_type: CanvasAppType,
pub grid: Option<GridData>,
pub layers: Option<Vec<Layer>>,
pub text_content: Vec<(String, f32, f32)>,
pub interactive_elements: Vec<CanvasElement>,
pub raw_state: Option<Value>,
pub extraction_tier: ExtractionTier,
}Expand description
Complete state extracted from a canvas application.
Fields§
§app_type: CanvasAppTypeThe type of canvas app detected.
grid: Option<GridData>Grid data for spreadsheet-like apps.
layers: Option<Vec<Layer>>Layer hierarchy for design tools.
text_content: Vec<(String, f32, f32)>All visible text content: (text, x, y).
interactive_elements: Vec<CanvasElement>Interactive elements (buttons, inputs, cells).
raw_state: Option<Value>Raw application state as JSON, if available.
extraction_tier: ExtractionTierWhich tier successfully extracted data.
Trait Implementations§
Source§impl Clone for CanvasState
impl Clone for CanvasState
Source§fn clone(&self) -> CanvasState
fn clone(&self) -> CanvasState
Returns a duplicate of the value. Read more
1.0.0 · 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 CanvasState
impl Debug for CanvasState
Source§impl<'de> Deserialize<'de> for CanvasState
impl<'de> Deserialize<'de> for CanvasState
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 CanvasState
impl RefUnwindSafe for CanvasState
impl Send for CanvasState
impl Sync for CanvasState
impl Unpin for CanvasState
impl UnsafeUnpin for CanvasState
impl UnwindSafe for CanvasState
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