pub struct ContextAnswer {
pub target: AccessibilityTarget,
pub confidence: f32,
pub observed_at: ContextObservedAt,
pub source: Option<ContextAnswerSource>,
}Expand description
Where the retained page context says a described control is.
Must stay in types: the crate-boundary guard requires every wire-advertised
shape to be a types:: one so the schema parity guard covers it.
Fields§
§target: AccessibilityTarget§confidence: f32§observed_at: ContextObservedAtWhether the answer was observed live this session (stamped with the page’s generation) or remembered from a prior session’s persisted context. Additive; absent means a live generation-0 answer.
source: Option<ContextAnswerSource>How the underlying record entered the graph. Absent for live answers (always direct observation).
Implementations§
Source§impl ContextAnswer
impl ContextAnswer
Sourcepub fn page_derived(&self) -> bool
pub fn page_derived(&self) -> bool
Retained and live context answers both originate from page observations.
Trait Implementations§
Source§impl Clone for ContextAnswer
impl Clone for ContextAnswer
Source§impl Debug for ContextAnswer
impl Debug for ContextAnswer
Source§impl<'de> Deserialize<'de> for ContextAnswer
impl<'de> Deserialize<'de> for ContextAnswer
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 ContextAnswer
impl PartialEq for ContextAnswer
Source§impl Serialize for ContextAnswer
impl Serialize for ContextAnswer
impl StructuralPartialEq for ContextAnswer
Auto Trait Implementations§
impl Freeze for ContextAnswer
impl RefUnwindSafe for ContextAnswer
impl Send for ContextAnswer
impl Sync for ContextAnswer
impl Unpin for ContextAnswer
impl UnsafeUnpin for ContextAnswer
impl UnwindSafe for ContextAnswer
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