pub struct SearchDocument {
pub id: String,
pub content: String,
}Expand description
Document object returned from document search.
Fields§
§id: StringDocument ID.
content: StringDocument content.
Trait Implementations§
Source§impl Clone for SearchDocument
impl Clone for SearchDocument
Source§fn clone(&self) -> SearchDocument
fn clone(&self) -> SearchDocument
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 SearchDocument
impl Debug for SearchDocument
Source§impl<'de> Deserialize<'de> for SearchDocument
impl<'de> Deserialize<'de> for SearchDocument
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 SearchDocument
impl RefUnwindSafe for SearchDocument
impl Send for SearchDocument
impl Sync for SearchDocument
impl Unpin for SearchDocument
impl UnsafeUnpin for SearchDocument
impl UnwindSafe for SearchDocument
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