pub struct ContextBundleV1 {
pub bundle_id: String,
pub task_id: String,
pub candidates: Vec<String>,
pub total_tokens: u64,
pub coverage_milli: u16,
pub strategy: String,
}Expand description
Context bundle selected for a task.
Fields§
§bundle_id: String§task_id: String§candidates: Vec<String>§total_tokens: u64§coverage_milli: u16§strategy: StringImplementations§
Source§impl ContextBundleV1
impl ContextBundleV1
Sourcepub fn validate(&self) -> Result<(), ValidationError>
pub fn validate(&self) -> Result<(), ValidationError>
Validate bundle coverage bounds.
Trait Implementations§
Source§impl Clone for ContextBundleV1
impl Clone for ContextBundleV1
Source§fn clone(&self) -> ContextBundleV1
fn clone(&self) -> ContextBundleV1
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 ContextBundleV1
impl Debug for ContextBundleV1
Source§impl Default for ContextBundleV1
impl Default for ContextBundleV1
Source§fn default() -> ContextBundleV1
fn default() -> ContextBundleV1
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContextBundleV1
impl<'de> Deserialize<'de> for ContextBundleV1
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 ContextBundleV1
Source§impl PartialEq for ContextBundleV1
impl PartialEq for ContextBundleV1
Source§impl Serialize for ContextBundleV1
impl Serialize for ContextBundleV1
impl StructuralPartialEq for ContextBundleV1
Auto Trait Implementations§
impl Freeze for ContextBundleV1
impl RefUnwindSafe for ContextBundleV1
impl Send for ContextBundleV1
impl Sync for ContextBundleV1
impl Unpin for ContextBundleV1
impl UnsafeUnpin for ContextBundleV1
impl UnwindSafe for ContextBundleV1
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