#[non_exhaustive]pub struct CodeAskOutput {Show 18 fields
pub answer: String,
pub partial: bool,
pub partial_reason: String,
pub note: String,
pub coverage: CodeAskOutputCoverage,
pub citations: Vec<HashMap<String, Value>>,
pub source: CodeAskOutputSource,
pub cache_similarity: f64,
pub cache: String,
pub cache_saved_ms: Integer,
pub cache_saved_usd: f64,
pub abstain: bool,
pub abstain_reason: String,
pub retrieval_confidence: f64,
pub tokens_returned: Integer,
pub context_tokens: Integer,
pub trace_run_id: String,
pub as_of: HashMap<String, Value>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.answer: String§partial: bool§partial_reason: String§note: String§coverage: CodeAskOutputCoverage§citations: Vec<HashMap<String, Value>>§source: CodeAskOutputSource§cache_similarity: f64§cache: String§cache_saved_ms: Integer§cache_saved_usd: f64§abstain: bool§abstain_reason: String§retrieval_confidence: f64§tokens_returned: Integer§context_tokens: Integer§trace_run_id: String§as_of: HashMap<String, Value>Trait Implementations§
Source§impl Clone for CodeAskOutput
impl Clone for CodeAskOutput
Source§impl Debug for CodeAskOutput
impl Debug for CodeAskOutput
Source§impl<'de> Deserialize<'de> for CodeAskOutput
impl<'de> Deserialize<'de> for CodeAskOutput
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
Source§impl PartialEq for CodeAskOutput
impl PartialEq for CodeAskOutput
Source§impl Serialize for CodeAskOutput
impl Serialize for CodeAskOutput
impl StructuralPartialEq for CodeAskOutput
Auto Trait Implementations§
impl Forget for CodeAskOutput
impl Freeze for CodeAskOutput
impl Move for CodeAskOutput
impl RefUnwindSafe for CodeAskOutput
impl Send for CodeAskOutput
impl Sync for CodeAskOutput
impl Unpin for CodeAskOutput
impl UnsafeUnpin for CodeAskOutput
impl UnwindSafe for CodeAskOutput
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