Enum lemmy_db_schema::SearchType
source · pub enum SearchType {
All,
Comments,
Posts,
Communities,
Users,
Url,
}
Expand description
The type of content returned from a search.
Variants§
Trait Implementations§
source§impl Clone for SearchType
impl Clone for SearchType
source§fn clone(&self) -> SearchType
fn clone(&self) -> SearchType
Returns a copy 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 SearchType
impl Debug for SearchType
source§impl<'de> Deserialize<'de> for SearchType
impl<'de> Deserialize<'de> for SearchType
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
source§impl Display for SearchType
impl Display for SearchType
source§impl FromStr for SearchType
impl FromStr for SearchType
source§impl Hash for SearchType
impl Hash for SearchType
source§impl PartialEq for SearchType
impl PartialEq for SearchType
source§fn eq(&self, other: &SearchType) -> bool
fn eq(&self, other: &SearchType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for SearchType
impl Serialize for SearchType
source§impl TryFrom<&str> for SearchType
impl TryFrom<&str> for SearchType
impl Copy for SearchType
impl Eq for SearchType
impl StructuralPartialEq for SearchType
Auto Trait Implementations§
impl Freeze for SearchType
impl RefUnwindSafe for SearchType
impl Send for SearchType
impl Sync for SearchType
impl Unpin for SearchType
impl UnwindSafe for SearchType
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