Enum lemmy_db_schema::PostListingMode
source · pub enum PostListingMode {
List,
Card,
SmallCard,
}
Expand description
A post-view mode that changes how multiple post listings look.
Variants§
List
A compact, list-type view.
Card
A larger card-type view.
SmallCard
A smaller card-type view, usually with images as thumbnails
Trait Implementations§
source§impl Clone for PostListingMode
impl Clone for PostListingMode
source§fn clone(&self) -> PostListingMode
fn clone(&self) -> PostListingMode
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 PostListingMode
impl Debug for PostListingMode
source§impl<'de> Deserialize<'de> for PostListingMode
impl<'de> Deserialize<'de> for PostListingMode
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 PostListingMode
impl Display for PostListingMode
source§impl FromStr for PostListingMode
impl FromStr for PostListingMode
source§impl PartialEq for PostListingMode
impl PartialEq for PostListingMode
source§fn eq(&self, other: &PostListingMode) -> bool
fn eq(&self, other: &PostListingMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PostListingMode
impl Serialize for PostListingMode
source§impl TryFrom<&str> for PostListingMode
impl TryFrom<&str> for PostListingMode
impl Copy for PostListingMode
impl Eq for PostListingMode
impl StructuralEq for PostListingMode
impl StructuralPartialEq for PostListingMode
Auto Trait Implementations§
impl RefUnwindSafe for PostListingMode
impl Send for PostListingMode
impl Sync for PostListingMode
impl Unpin for PostListingMode
impl UnwindSafe for PostListingMode
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