pub struct ExtractedArtifact {
pub artifact_type: ArtifactType,
pub content: String,
pub confidence: f32,
}Expand description
An artifact extracted from content.
Fields§
§artifact_type: ArtifactTypeType of artifact extracted
content: StringThe extracted content
confidence: f32Confidence score (0.0 - 1.0)
Trait Implementations§
Source§impl Clone for ExtractedArtifact
impl Clone for ExtractedArtifact
Source§fn clone(&self) -> ExtractedArtifact
fn clone(&self) -> ExtractedArtifact
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for ExtractedArtifact
impl ComposeSchema for ExtractedArtifact
Source§impl Debug for ExtractedArtifact
impl Debug for ExtractedArtifact
Source§impl<'de> Deserialize<'de> for ExtractedArtifact
impl<'de> Deserialize<'de> for ExtractedArtifact
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
Source§impl PartialEq for ExtractedArtifact
impl PartialEq for ExtractedArtifact
Source§impl Serialize for ExtractedArtifact
impl Serialize for ExtractedArtifact
Source§impl ToSchema for ExtractedArtifact
impl ToSchema for ExtractedArtifact
impl StructuralPartialEq for ExtractedArtifact
Auto Trait Implementations§
impl Freeze for ExtractedArtifact
impl RefUnwindSafe for ExtractedArtifact
impl Send for ExtractedArtifact
impl Sync for ExtractedArtifact
impl Unpin for ExtractedArtifact
impl UnwindSafe for ExtractedArtifact
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