pub struct LiveTextDelegateEvent {
pub kind: String,
pub point: Option<Point>,
pub analysis_type_raw: Option<u64>,
pub decision: Option<bool>,
pub rect: Option<Rect>,
pub event: Option<LiveTextEventInfo>,
pub menu: Option<LiveTextMenu>,
pub menu_item: Option<LiveTextMenuItem>,
pub visible: Option<bool>,
pub highlighted: Option<bool>,
pub has_content_view: Option<bool>,
}Expand description
Represents a VisionKit live text delegate callback event.
Fields§
§kind: StringStores the VisionKit kind value.
point: Option<Point>Stores the VisionKit point value.
analysis_type_raw: Option<u64>Stores the VisionKit analysis type raw value.
decision: Option<bool>Stores the VisionKit decision value.
rect: Option<Rect>Stores the VisionKit rect value.
event: Option<LiveTextEventInfo>Stores the VisionKit event value.
Stores the VisionKit menu value.
Stores the VisionKit menu item value.
visible: Option<bool>Stores the VisionKit visible value.
highlighted: Option<bool>Stores the VisionKit highlighted value.
has_content_view: Option<bool>Indicates whether VisionKit reports this value has content view.
Trait Implementations§
Source§impl Clone for LiveTextDelegateEvent
impl Clone for LiveTextDelegateEvent
Source§fn clone(&self) -> LiveTextDelegateEvent
fn clone(&self) -> LiveTextDelegateEvent
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 LiveTextDelegateEvent
impl Debug for LiveTextDelegateEvent
Source§impl<'de> Deserialize<'de> for LiveTextDelegateEvent
impl<'de> Deserialize<'de> for LiveTextDelegateEvent
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
Source§impl PartialEq for LiveTextDelegateEvent
impl PartialEq for LiveTextDelegateEvent
Source§fn eq(&self, other: &LiveTextDelegateEvent) -> bool
fn eq(&self, other: &LiveTextDelegateEvent) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LiveTextDelegateEvent
impl Serialize for LiveTextDelegateEvent
impl StructuralPartialEq for LiveTextDelegateEvent
Auto Trait Implementations§
impl Freeze for LiveTextDelegateEvent
impl RefUnwindSafe for LiveTextDelegateEvent
impl Send for LiveTextDelegateEvent
impl Sync for LiveTextDelegateEvent
impl Unpin for LiveTextDelegateEvent
impl UnsafeUnpin for LiveTextDelegateEvent
impl UnwindSafe for LiveTextDelegateEvent
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