pub struct SearchIndexData {
pub ty: SearchIndexType,
pub folder_id: Uuid,
pub document_box: String,
pub item_id: Uuid,
pub name: String,
pub mime: Option<String>,
pub content: Option<String>,
pub created_at: DateTime<Utc>,
pub created_by: Option<String>,
pub pages: Option<Vec<DocumentPage>>,
}Fields§
§ty: SearchIndexTypeType of item the search index data is representing
folder_id: UuidID of the folder the indexed item is within.
(For searching only withing a specific folder path)
document_box: StringDocument box scope that this item is within
(For restricting search scope)
item_id: UuidUnique ID for the actual document
this is to allow multiple page documents to be stored as separate search index items without overriding each other
name: StringName of this item
mime: Option<String>Mime type when working with file items (Otherwise none)
content: Option<String>For files this is the file content (With an associated page number) For links this is the link value
created_at: DateTime<Utc>Creation date for the item
created_by: Option<String>User who created the item
pages: Option<Vec<DocumentPage>>Optional pages of document content
Trait Implementations§
Source§impl Clone for SearchIndexData
impl Clone for SearchIndexData
Source§fn clone(&self) -> SearchIndexData
fn clone(&self) -> SearchIndexData
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 SearchIndexData
impl Debug for SearchIndexData
Source§impl<'de> Deserialize<'de> for SearchIndexData
impl<'de> Deserialize<'de> for SearchIndexData
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchIndexData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SearchIndexData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SearchIndexData
impl Serialize for SearchIndexData
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for SearchIndexData
impl RefUnwindSafe for SearchIndexData
impl Send for SearchIndexData
impl Sync for SearchIndexData
impl Unpin for SearchIndexData
impl UnwindSafe for SearchIndexData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.