Enum lemmy_db_schema::PostFeatureType
source · pub enum PostFeatureType {
Local,
Community,
}
Expand description
The feature type for a post.
Variants§
Trait Implementations§
source§impl Clone for PostFeatureType
impl Clone for PostFeatureType
source§fn clone(&self) -> PostFeatureType
fn clone(&self) -> PostFeatureType
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 PostFeatureType
impl Debug for PostFeatureType
source§impl Default for PostFeatureType
impl Default for PostFeatureType
source§fn default() -> PostFeatureType
fn default() -> PostFeatureType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for PostFeatureType
impl<'de> Deserialize<'de> for PostFeatureType
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 PostFeatureType
impl Display for PostFeatureType
source§impl FromStr for PostFeatureType
impl FromStr for PostFeatureType
source§impl PartialEq for PostFeatureType
impl PartialEq for PostFeatureType
source§fn eq(&self, other: &PostFeatureType) -> bool
fn eq(&self, other: &PostFeatureType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PostFeatureType
impl Serialize for PostFeatureType
source§impl TryFrom<&str> for PostFeatureType
impl TryFrom<&str> for PostFeatureType
impl Copy for PostFeatureType
impl Eq for PostFeatureType
impl StructuralEq for PostFeatureType
impl StructuralPartialEq for PostFeatureType
Auto Trait Implementations§
impl RefUnwindSafe for PostFeatureType
impl Send for PostFeatureType
impl Sync for PostFeatureType
impl Unpin for PostFeatureType
impl UnwindSafe for PostFeatureType
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