pub struct VisionRequest<'a> {
pub prompt: &'a str,
pub region: Option<&'a RectIR>,
pub screenshot: &'a [u8],
pub media_type: &'a str,
}Expand description
One vision verification request: the author-written prompt (never
synthesized by the compiler, principle 6), an optional region of
interest, and the localized screenshot bytes (evidence is localized
during observing, spine §6.6 — the verifier never reaches back into a
provider session).
Fields§
§prompt: &'a strThe author-written prompt, verbatim (AssertionIR.visionPrompt for
elementState/elementText chain tails; predicate.prompt for
visual predicates).
region: Option<&'a RectIR>Optional region of interest (visual predicates only).
screenshot: &'a [u8]The localized screenshot bytes.
media_type: &'a strThe screenshot’s media type, e.g. image/png.
Trait Implementations§
Source§impl<'a> Clone for VisionRequest<'a>
impl<'a> Clone for VisionRequest<'a>
Source§fn clone(&self) -> VisionRequest<'a>
fn clone(&self) -> VisionRequest<'a>
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<'a> Debug for VisionRequest<'a>
impl<'a> Debug for VisionRequest<'a>
Source§impl<'a> PartialEq for VisionRequest<'a>
impl<'a> PartialEq for VisionRequest<'a>
impl<'a> StructuralPartialEq for VisionRequest<'a>
Auto Trait Implementations§
impl<'a> Freeze for VisionRequest<'a>
impl<'a> RefUnwindSafe for VisionRequest<'a>
impl<'a> Send for VisionRequest<'a>
impl<'a> Sync for VisionRequest<'a>
impl<'a> Unpin for VisionRequest<'a>
impl<'a> UnsafeUnpin for VisionRequest<'a>
impl<'a> UnwindSafe for VisionRequest<'a>
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