pub struct KnowledgeBaseResponseDocument {
pub content: String,
pub similarity: f64,
pub uuid: Option<String>,
}
Fields§
§content: String
This is the content of the document.
similarity: f64
This is the similarity score of the document.
uuid: Option<String>
This is the uuid of the document.
Implementations§
Source§impl KnowledgeBaseResponseDocument
impl KnowledgeBaseResponseDocument
pub fn new(content: String, similarity: f64) -> KnowledgeBaseResponseDocument
Trait Implementations§
Source§impl Clone for KnowledgeBaseResponseDocument
impl Clone for KnowledgeBaseResponseDocument
Source§fn clone(&self) -> KnowledgeBaseResponseDocument
fn clone(&self) -> KnowledgeBaseResponseDocument
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Default for KnowledgeBaseResponseDocument
impl Default for KnowledgeBaseResponseDocument
Source§fn default() -> KnowledgeBaseResponseDocument
fn default() -> KnowledgeBaseResponseDocument
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for KnowledgeBaseResponseDocument
impl<'de> Deserialize<'de> for KnowledgeBaseResponseDocument
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 KnowledgeBaseResponseDocument
impl PartialEq for KnowledgeBaseResponseDocument
Source§fn eq(&self, other: &KnowledgeBaseResponseDocument) -> bool
fn eq(&self, other: &KnowledgeBaseResponseDocument) -> bool
Tests for
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for KnowledgeBaseResponseDocument
Auto Trait Implementations§
impl Freeze for KnowledgeBaseResponseDocument
impl RefUnwindSafe for KnowledgeBaseResponseDocument
impl Send for KnowledgeBaseResponseDocument
impl Sync for KnowledgeBaseResponseDocument
impl Unpin for KnowledgeBaseResponseDocument
impl UnwindSafe for KnowledgeBaseResponseDocument
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