pub struct FileSearchResult {
pub file_id: String,
pub filename: String,
pub score: f32,
pub text: String,
pub attributes: HashMap<String, Value>,
}
Expand description
A single result from a file search.
Fields§
§file_id: String
The unique ID of the file.
filename: String
The name of the file.
score: f32
The relevance score of the file - a value between 0 and 1.
text: String
The text that was retrieved from the file.
attributes: HashMap<String, Value>
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects API or the dashboard. Keys are strings with a maximum length of 64 characters . Values are strings with a maximum length of 512 characters, booleans, or numbers.
Trait Implementations§
Source§impl Clone for FileSearchResult
impl Clone for FileSearchResult
Source§fn clone(&self) -> FileSearchResult
fn clone(&self) -> FileSearchResult
Returns a duplicate of the value. Read more
1.0.0 · 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 FileSearchResult
impl Debug for FileSearchResult
Source§impl<'de> Deserialize<'de> for FileSearchResult
impl<'de> Deserialize<'de> for FileSearchResult
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 FileSearchResult
impl PartialEq for FileSearchResult
Source§impl Serialize for FileSearchResult
impl Serialize for FileSearchResult
impl StructuralPartialEq for FileSearchResult
Auto Trait Implementations§
impl Freeze for FileSearchResult
impl RefUnwindSafe for FileSearchResult
impl Send for FileSearchResult
impl Sync for FileSearchResult
impl Unpin for FileSearchResult
impl UnwindSafe for FileSearchResult
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