pub struct SqlQuery {
pub sql: String,
pub explanation: String,
pub confidence: f32,
}Expand description
NL→SQL 查询结果
Fields§
§sql: String生成的 SQL(使用 $1, $2 等参数化占位符)
explanation: String生成过程的自然语言解释
confidence: f32置信度(0.0 ~ 1.0)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SqlQuery
impl RefUnwindSafe for SqlQuery
impl Send for SqlQuery
impl Sync for SqlQuery
impl Unpin for SqlQuery
impl UnsafeUnpin for SqlQuery
impl UnwindSafe for SqlQuery
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