pub struct DocumentImportItem {
pub title: String,
pub description: Option<String>,
pub type_of: String,
pub confidence: Option<Value>,
pub parent_title: Option<String>,
pub position: Option<i64>,
pub included: Option<bool>,
}Expand description
A candidate item extracted from a document. Also the element type of the
optional commit body; included: Some(false) skips the item on commit.
Fields§
§title: String§description: Option<String>§type_of: String§confidence: Option<Value>LLM confidence — kept as raw JSON (number or label) so decode never fails.
parent_title: Option<String>§position: Option<i64>§included: Option<bool>Trait Implementations§
Source§impl Clone for DocumentImportItem
impl Clone for DocumentImportItem
Source§impl Debug for DocumentImportItem
impl Debug for DocumentImportItem
Source§impl<'de> Deserialize<'de> for DocumentImportItem
impl<'de> Deserialize<'de> for DocumentImportItem
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
Auto Trait Implementations§
impl Forget for DocumentImportItem
impl Freeze for DocumentImportItemwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<Value>: Freeze,
*const LeafNode<String, Value> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, Value)>>: Freeze,
impl Move for DocumentImportItem
impl RefUnwindSafe for DocumentImportItem
impl Send for DocumentImportItem
impl Sync for DocumentImportItem
impl Unpin for DocumentImportItem
impl UnsafeUnpin for DocumentImportItemwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Value>: UnsafeUnpin,
*const LeafNode<String, Value> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, Value)>>: UnsafeUnpin,
impl UnwindSafe for DocumentImportItem
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