pub struct AskResponse {
pub sql: String,
pub explanation: String,
pub usage: Usage,
}Expand description
Result returned from a successful [ask] call.
sql is the generated query text — empty string if the model
determined the question can’t be answered against the schema.
explanation is the model’s one-sentence rationale; useful in
REPL “confirm before run” UIs.
usage surfaces token counts (input/output/cache hit/cache write).
Inspect it to verify prompt-caching is actually working — see
docs/phase-7-plan.md Q3-adjacent for the audit checklist.
Fields§
§sql: String§explanation: String§usage: UsageTrait Implementations§
Source§impl Clone for AskResponse
impl Clone for AskResponse
Source§fn clone(&self) -> AskResponse
fn clone(&self) -> AskResponse
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 moreAuto Trait Implementations§
impl Freeze for AskResponse
impl RefUnwindSafe for AskResponse
impl Send for AskResponse
impl Sync for AskResponse
impl Unpin for AskResponse
impl UnsafeUnpin for AskResponse
impl UnwindSafe for AskResponse
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