Enum backend::models::search::SearchRequest [−][src]
pub enum SearchRequest {
RetrieveBurrow {
burrow_id: i64,
},
RetrievePost {
post_id: i64,
},
SearchBurrowKeyword {
keywords: Vec<String>,
},
SearchPostKeyword {
keywords: Vec<String>,
},
SearchPostTag {
tag: Vec<String>,
},
}Expand description
Different kinds of search request
Fields
SearchRequest::RetrieveBurrow: Retrieve burrow with paramburrow_idin i64SearchRequest::RetrievePost: Retrieve post with parampost_idin i64SearchRequest::SearchBurrowKeyword: Search burrow with paramkeywordsin vector of StringSearchRequest::SearchPostKeyword: Search post with paramkeywordsin vector of StringSearchRequest::SearchPostTag: Search post with paramtagin vector of String
Variants
Fields of RetrieveBurrow
burrow_id: i64Fields of RetrievePost
post_id: i64Trait 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
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 SearchRequest
impl Send for SearchRequest
impl Sync for SearchRequest
impl Unpin for SearchRequest
impl UnwindSafe for SearchRequest
Blanket Implementations
Mutably borrows from an owned value. Read more
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