pub struct GroundingElement {
pub id: String,
pub page: String,
pub bbox: [i64; 4],
pub kind: String,
pub text: Option<String>,
}Expand description
An addressable element exposed for evidence checks.
Fields§
§id: StringElement id in the source’s namespace.
page: StringOwning page id.
bbox: [i64; 4][x0, y0, x1, y1] in the source’s declared units/origin.
kind: StringElement kind, lowercased, source-defined (e.g. "text_block", "heading").
text: Option<String>Text content when applicable.
Trait Implementations§
Source§impl Clone for GroundingElement
impl Clone for GroundingElement
Source§fn clone(&self) -> GroundingElement
fn clone(&self) -> GroundingElement
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 GroundingElement
impl Debug for GroundingElement
Source§impl<'de> Deserialize<'de> for GroundingElement
impl<'de> Deserialize<'de> for GroundingElement
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
impl Eq for GroundingElement
Source§impl PartialEq for GroundingElement
impl PartialEq for GroundingElement
Source§fn eq(&self, other: &GroundingElement) -> bool
fn eq(&self, other: &GroundingElement) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GroundingElement
impl Serialize for GroundingElement
impl StructuralPartialEq for GroundingElement
Auto Trait Implementations§
impl Freeze for GroundingElement
impl RefUnwindSafe for GroundingElement
impl Send for GroundingElement
impl Sync for GroundingElement
impl Unpin for GroundingElement
impl UnsafeUnpin for GroundingElement
impl UnwindSafe for GroundingElement
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