pub struct GroundingSpan {
pub id: String,
pub page: String,
pub bbox: [i64; 4],
pub text: String,
pub element: Option<String>,
pub char_start: Option<u32>,
pub char_end: Option<u32>,
}Expand description
Optional span with char offsets (capability spans / char_offsets).
Fields§
§id: StringSpan id in the source’s namespace.
page: StringOwning page id.
bbox: [i64; 4][x0, y0, x1, y1] in the source’s declared units/origin.
text: StringSpan text.
element: Option<String>Owning element id, when ownership is known.
char_start: Option<u32>Char offset range within the owning element’s text.
char_end: Option<u32>Exclusive end offset.
Trait Implementations§
Source§impl Clone for GroundingSpan
impl Clone for GroundingSpan
Source§fn clone(&self) -> GroundingSpan
fn clone(&self) -> GroundingSpan
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 GroundingSpan
impl Debug for GroundingSpan
Source§impl<'de> Deserialize<'de> for GroundingSpan
impl<'de> Deserialize<'de> for GroundingSpan
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 GroundingSpan
Source§impl PartialEq for GroundingSpan
impl PartialEq for GroundingSpan
Source§fn eq(&self, other: &GroundingSpan) -> bool
fn eq(&self, other: &GroundingSpan) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for GroundingSpan
impl Serialize for GroundingSpan
impl StructuralPartialEq for GroundingSpan
Auto Trait Implementations§
impl Freeze for GroundingSpan
impl RefUnwindSafe for GroundingSpan
impl Send for GroundingSpan
impl Sync for GroundingSpan
impl Unpin for GroundingSpan
impl UnsafeUnpin for GroundingSpan
impl UnwindSafe for GroundingSpan
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