pub struct CanvasElement {
pub label: String,
pub role: String,
pub bounds: Option<(f32, f32, f32, f32)>,
pub action: Option<String>,
}Expand description
An interactive element discovered on a canvas.
Fields§
§label: StringElement label or accessible name.
role: StringRole (button, textbox, cell, image, etc.).
bounds: Option<(f32, f32, f32, f32)>Bounding box: (x, y, width, height).
action: Option<String>Associated action URL or JS function, if any.
Trait Implementations§
Source§impl Clone for CanvasElement
impl Clone for CanvasElement
Source§fn clone(&self) -> CanvasElement
fn clone(&self) -> CanvasElement
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 CanvasElement
impl Debug for CanvasElement
Source§impl<'de> Deserialize<'de> for CanvasElement
impl<'de> Deserialize<'de> for CanvasElement
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 CanvasElement
impl RefUnwindSafe for CanvasElement
impl Send for CanvasElement
impl Sync for CanvasElement
impl Unpin for CanvasElement
impl UnsafeUnpin for CanvasElement
impl UnwindSafe for CanvasElement
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