pub enum HackerNewsItemType {
Comment,
Job,
Poll,
PollOpt,
Story,
Unknown,
}
Expand description
Hacker News response type included on each item retrieval.
Variants§
Comment
The comment type, representing comments on articles and users.
Job
The Job type, representing jobs.
Poll
The Job type, representing jobs.
PollOpt
The Job type, representing jobs.
Story
The Job type, representing jobs.
Unknown
An unknown type in the case a match is not found for the item type
Trait Implementations§
Source§impl Clone for HackerNewsItemType
impl Clone for HackerNewsItemType
Source§fn clone(&self) -> HackerNewsItemType
fn clone(&self) -> HackerNewsItemType
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for HackerNewsItemType
impl Debug for HackerNewsItemType
Source§impl Display for HackerNewsItemType
impl Display for HackerNewsItemType
Source§impl PartialEq for HackerNewsItemType
impl PartialEq for HackerNewsItemType
impl Copy for HackerNewsItemType
impl Eq for HackerNewsItemType
impl StructuralPartialEq for HackerNewsItemType
Auto Trait Implementations§
impl Freeze for HackerNewsItemType
impl RefUnwindSafe for HackerNewsItemType
impl Send for HackerNewsItemType
impl Sync for HackerNewsItemType
impl Unpin for HackerNewsItemType
impl UnwindSafe for HackerNewsItemType
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§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.