pub struct KnowledgeGapResponse {
pub entities: Vec<String>,
pub internal_density: f32,
pub external_bridges: usize,
pub suggested_exploration: String,
}Expand description
Wire shape for a single knowledge gap returned by /api/v1/kg/gaps.
Why: KnowledgeGap (in trusty-common) does not derive Serialize
because that would force serde into the memory-core feature surface; the
HTTP layer instead owns a narrow response struct mirroring its fields.
What: One-for-one wire representation of KnowledgeGap — entities, the
internal-density score, the cross-community bridge count, and the
LLM/template exploration hint.
Test: kg_gaps_endpoint_returns_cached_gaps.
Fields§
§entities: Vec<String>§internal_density: f32§external_bridges: usize§suggested_exploration: StringTrait Implementations§
Source§impl Clone for KnowledgeGapResponse
impl Clone for KnowledgeGapResponse
Source§fn clone(&self) -> KnowledgeGapResponse
fn clone(&self) -> KnowledgeGapResponse
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 KnowledgeGapResponse
impl Debug for KnowledgeGapResponse
Source§impl From<KnowledgeGap> for KnowledgeGapResponse
impl From<KnowledgeGap> for KnowledgeGapResponse
Source§fn from(g: KnowledgeGap) -> Self
fn from(g: KnowledgeGap) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for KnowledgeGapResponse
impl RefUnwindSafe for KnowledgeGapResponse
impl Send for KnowledgeGapResponse
impl Sync for KnowledgeGapResponse
impl Unpin for KnowledgeGapResponse
impl UnsafeUnpin for KnowledgeGapResponse
impl UnwindSafe for KnowledgeGapResponse
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more