pub struct CropElementDescriptor {Show 15 fields
pub artifact_type: String,
pub schema_version: String,
pub crop_ref: String,
pub document_fingerprint: String,
pub page: String,
pub bbox: [i64; 4],
pub check_ids: Vec<String>,
pub rendering_status: CropElementRendering,
pub source_pdf_fingerprint: Option<String>,
pub rendered_ref: Option<String>,
pub rendered_format: Option<String>,
pub rendered_sha256: Option<String>,
pub rendered_width_px: Option<u32>,
pub rendered_height_px: Option<u32>,
pub text_sha256: Option<String>,
}Expand description
Deterministic JSON descriptor for one resolved crop element.
Fields§
§artifact_type: StringDescriptor artifact type, currently ethos.crop_descriptor.v1.
schema_version: StringContract schema version.
crop_ref: StringStable descriptor filename.
document_fingerprint: StringCanonical document fingerprint.
page: StringResolved page id.
bbox: [i64; 4]Resolved element bounding box in contract array form.
check_ids: Vec<String>Logical verification check ids bound to this descriptor.
rendering_status: CropElementRenderingDescriptor rendering status.
source_pdf_fingerprint: Option<String>Fingerprint of caller-provided source PDF bytes for rendered descriptors.
rendered_ref: Option<String>Stable rendered crop filename.
rendered_format: Option<String>Rendered crop format.
rendered_sha256: Option<String>SHA-256 of rendered crop bytes.
rendered_width_px: Option<u32>Rendered crop width in pixels.
rendered_height_px: Option<u32>Rendered crop height in pixels.
text_sha256: Option<String>SHA-256 of resolved element text when textual evidence is present.
Trait Implementations§
Source§impl Clone for CropElementDescriptor
impl Clone for CropElementDescriptor
Source§fn clone(&self) -> CropElementDescriptor
fn clone(&self) -> CropElementDescriptor
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 CropElementDescriptor
impl Debug for CropElementDescriptor
Source§impl<'de> Deserialize<'de> for CropElementDescriptor
impl<'de> Deserialize<'de> for CropElementDescriptor
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 CropElementDescriptor
Source§impl PartialEq for CropElementDescriptor
impl PartialEq for CropElementDescriptor
Source§fn eq(&self, other: &CropElementDescriptor) -> bool
fn eq(&self, other: &CropElementDescriptor) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for CropElementDescriptor
impl Serialize for CropElementDescriptor
impl StructuralPartialEq for CropElementDescriptor
Auto Trait Implementations§
impl Freeze for CropElementDescriptor
impl RefUnwindSafe for CropElementDescriptor
impl Send for CropElementDescriptor
impl Sync for CropElementDescriptor
impl Unpin for CropElementDescriptor
impl UnsafeUnpin for CropElementDescriptor
impl UnwindSafe for CropElementDescriptor
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