pub struct SurrealRagSearchResponse {
pub results: Vec<SurrealRagResult>,
pub query: String,
pub provider: Option<String>,
pub cost_ticks: i64,
pub request_id: String,
}Expand description
Response from SurrealDB RAG search.
Fields§
§results: Vec<SurrealRagResult>Matching documentation chunks.
query: StringOriginal search query.
provider: Option<String>Provider filter that was applied.
cost_ticks: i64Total cost in ticks.
request_id: StringUnique request identifier.
Trait Implementations§
Source§impl Clone for SurrealRagSearchResponse
impl Clone for SurrealRagSearchResponse
Source§fn clone(&self) -> SurrealRagSearchResponse
fn clone(&self) -> SurrealRagSearchResponse
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 SurrealRagSearchResponse
impl Debug for SurrealRagSearchResponse
Source§impl<'de> Deserialize<'de> for SurrealRagSearchResponse
impl<'de> Deserialize<'de> for SurrealRagSearchResponse
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 SurrealRagSearchResponse
impl RefUnwindSafe for SurrealRagSearchResponse
impl Send for SurrealRagSearchResponse
impl Sync for SurrealRagSearchResponse
impl Unpin for SurrealRagSearchResponse
impl UnsafeUnpin for SurrealRagSearchResponse
impl UnwindSafe for SurrealRagSearchResponse
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