pub struct ContextCapsule {
pub id: String,
pub kind: String,
pub summary: String,
pub token_estimate: u32,
pub expansion_handle: String,
pub provenance: Vec<ProvenanceRef>,
pub confidence: f32,
pub freshness: f32,
pub relevance: f32,
pub scope_weight: f32,
pub score: f32,
}Fields§
§id: String§kind: String§summary: String§token_estimate: u32§expansion_handle: String§provenance: Vec<ProvenanceRef>§confidence: f32§freshness: f32§relevance: f32§scope_weight: f32§score: f32Implementations§
Source§impl ContextCapsule
impl ContextCapsule
Sourcepub fn wire_minimal(summary: String, kind: String, score: f32) -> Self
pub fn wire_minimal(summary: String, kind: String, score: f32) -> Self
v1.0.0: build a render-only capsule from daemon wire data. Only the
fields the hook renders (summary, kind, score) are meaningful;
the rest are zeroed — this capsule is never re-scored or expanded.
Trait Implementations§
Source§impl Clone for ContextCapsule
impl Clone for ContextCapsule
Source§fn clone(&self) -> ContextCapsule
fn clone(&self) -> ContextCapsule
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 ContextCapsule
impl Debug for ContextCapsule
Source§impl<'de> Deserialize<'de> for ContextCapsule
impl<'de> Deserialize<'de> for ContextCapsule
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 ContextCapsule
impl RefUnwindSafe for ContextCapsule
impl Send for ContextCapsule
impl Sync for ContextCapsule
impl Unpin for ContextCapsule
impl UnsafeUnpin for ContextCapsule
impl UnwindSafe for ContextCapsule
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