pub struct ToolCollectionObservation {
pub collection: ToolTargetHint,
pub facets: Vec<ToolSemanticFacet>,
pub completeness: ToolCollectionCompleteness,
pub returned_count: usize,
pub total_count: Option<usize>,
pub members: Vec<ToolTargetHint>,
}Expand description
Exact coverage of one collection returned by an adapter. members contains
stable identities, never display labels. Only Complete coverage can prove
non-membership; counts remain audit facts and are not interpreted as proof
on their own.
Fields§
§collection: ToolTargetHint§facets: Vec<ToolSemanticFacet>§completeness: ToolCollectionCompleteness§returned_count: usize§total_count: Option<usize>§members: Vec<ToolTargetHint>Implementations§
Source§impl ToolCollectionObservation
impl ToolCollectionObservation
pub fn complete( collection: ToolTargetHint, facets: &[ToolSemanticFacet], members: Vec<ToolTargetHint>, ) -> Self
Trait Implementations§
Source§impl Clone for ToolCollectionObservation
impl Clone for ToolCollectionObservation
Source§impl Debug for ToolCollectionObservation
impl Debug for ToolCollectionObservation
Source§impl<'de> Deserialize<'de> for ToolCollectionObservation
impl<'de> Deserialize<'de> for ToolCollectionObservation
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 ToolCollectionObservation
impl StructuralPartialEq for ToolCollectionObservation
Auto Trait Implementations§
impl Forget for ToolCollectionObservation
impl Freeze for ToolCollectionObservation
impl Move for ToolCollectionObservation
impl RefUnwindSafe for ToolCollectionObservation
impl Send for ToolCollectionObservation
impl Sync for ToolCollectionObservation
impl Unpin for ToolCollectionObservation
impl UnsafeUnpin for ToolCollectionObservation
impl UnwindSafe for ToolCollectionObservation
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