pub struct RelevanceCheck {
pub relevant: bool,
pub score: f64,
pub expected_items: Vec<String>,
pub found_items: Vec<String>,
pub missing_items: Vec<String>,
pub unexpected_items: Vec<String>,
pub notes: Option<String>,
}Expand description
Relevance check against expected content.
Fields§
§relevant: boolWhether the image is relevant to the context.
score: f64Relevance score (0.0 - 1.0).
expected_items: Vec<String>Items expected based on context.
found_items: Vec<String>Items actually found in the image.
missing_items: Vec<String>Expected but not found.
unexpected_items: Vec<String>Found but not expected.
notes: Option<String>Additional notes.
Trait Implementations§
Source§impl Clone for RelevanceCheck
impl Clone for RelevanceCheck
Source§fn clone(&self) -> RelevanceCheck
fn clone(&self) -> RelevanceCheck
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 RelevanceCheck
impl Debug for RelevanceCheck
Source§impl Default for RelevanceCheck
impl Default for RelevanceCheck
Source§fn default() -> RelevanceCheck
fn default() -> RelevanceCheck
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RelevanceCheck
impl<'de> Deserialize<'de> for RelevanceCheck
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 Freeze for RelevanceCheck
impl RefUnwindSafe for RelevanceCheck
impl Send for RelevanceCheck
impl Sync for RelevanceCheck
impl Unpin for RelevanceCheck
impl UnsafeUnpin for RelevanceCheck
impl UnwindSafe for RelevanceCheck
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