pub enum ArticleKind {
Article,
Index,
}Expand description
Whether a page turned out to be an article or a listing.
Variants§
Article
Prose: the usual case.
Index
A front page, feed or archive, where the link list is the content.
Trait Implementations§
Source§impl Clone for ArticleKind
impl Clone for ArticleKind
impl Copy for ArticleKind
Source§impl Debug for ArticleKind
impl Debug for ArticleKind
impl Eq for ArticleKind
Source§impl PartialEq for ArticleKind
impl PartialEq for ArticleKind
Source§impl Serialize for ArticleKind
impl Serialize for ArticleKind
impl StructuralPartialEq for ArticleKind
Auto Trait Implementations§
impl Forget for ArticleKind
impl Freeze for ArticleKind
impl Move for ArticleKind
impl RefUnwindSafe for ArticleKind
impl Send for ArticleKind
impl Sync for ArticleKind
impl Unpin for ArticleKind
impl UnsafeUnpin for ArticleKind
impl UnwindSafe for ArticleKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more