Struct backend::models::search::TypesensePostData [−][src]
pub struct TypesensePostData {
pub id: String,
pub post_id: i64,
pub burrow_id: i64,
pub title: String,
pub section: Vec<PostSection>,
pub tag: Vec<String>,
pub update_time: DateTimeWithTimeZone,
}Expand description
Post struct in typesense database
Fields
id: Post id in String for searchengine indexpost_id: Post id in i64burrow_id: i64 id of burrow to which the post belongstitle: Post title in Stringsection: vector of Postsectiontag: vector of tag in Stringupdate_time: Update time in DataTimeWithTimeZone struct
Fields
id: Stringpost_id: i64burrow_id: i64title: Stringsection: Vec<PostSection>tag: Vec<String>update_time: DateTimeWithTimeZoneTrait Implementations
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
Performs the conversion.
Performs the conversion.
Performs the conversion.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for TypesensePostData
impl Send for TypesensePostData
impl Sync for TypesensePostData
impl Unpin for TypesensePostData
impl UnwindSafe for TypesensePostData
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn clone_any_send(&self) -> Box<dyn CloneAny + Send + 'static, Global> where
T: Send,
pub fn clone_any_sync(&self) -> Box<dyn CloneAny + Sync + 'static, Global> where
T: Sync,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
pub fn into_collection<A>(self) -> SmallVec<A> where
A: Array<Item = T>,
Converts self into a collection.
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more