Enum lemmy_db_schema::ListingType
source · pub enum ListingType {
All,
Local,
Subscribed,
ModeratorView,
}
Expand description
A listing type for post and comment list fetches.
Variants§
All
Content from your own site, as well as all connected / federated sites.
Local
Content from your site only.
Subscribed
Content only from communities you’ve subscribed to.
ModeratorView
Content that you can moderate (because you are a moderator of the community it is posted to)
Trait Implementations§
source§impl Clone for ListingType
impl Clone for ListingType
source§fn clone(&self) -> ListingType
fn clone(&self) -> ListingType
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 ListingType
impl Debug for ListingType
source§impl Default for ListingType
impl Default for ListingType
source§fn default() -> ListingType
fn default() -> ListingType
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for ListingType
impl<'de> Deserialize<'de> for ListingType
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 ListingType
impl Display for ListingType
source§impl FromStr for ListingType
impl FromStr for ListingType
source§impl PartialEq for ListingType
impl PartialEq for ListingType
source§fn eq(&self, other: &ListingType) -> bool
fn eq(&self, other: &ListingType) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for ListingType
impl Serialize for ListingType
source§impl TryFrom<&str> for ListingType
impl TryFrom<&str> for ListingType
impl Copy for ListingType
impl Eq for ListingType
impl StructuralEq for ListingType
impl StructuralPartialEq for ListingType
Auto Trait Implementations§
impl RefUnwindSafe for ListingType
impl Send for ListingType
impl Sync for ListingType
impl Unpin for ListingType
impl UnwindSafe for ListingType
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