pub struct FileSearchResult {
pub attributes: Option<HashMap<String, Value>>,
pub file_id: Option<String>,
pub filename: Option<String>,
pub score: Option<f64>,
pub text: Option<String>,
}Fields§
§attributes: Option<HashMap<String, Value>>Set of 16 key-value pairs that can be attached to an object.
file_id: Option<String>The unique ID of the file.
filename: Option<String>The name of the file.
score: Option<f64>The relevance score of the file - a value between 0 and 1.
text: Option<String>The text that was retrieved from the file.
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 (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 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
Auto Trait Implementations§
impl Freeze for FileSearchResult
impl RefUnwindSafe for FileSearchResult
impl Send for FileSearchResult
impl Sync for FileSearchResult
impl Unpin for FileSearchResult
impl UnsafeUnpin 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