Enum hackernews_types::ItemVariant [−][src]
pub enum ItemVariant { Story { descendants: i32, kids: Vec<u32>, score: i32, title: String, url: Option<String>, text: Option<String>, }, Comment { kids: Vec<u32>, parent: u32, text: String, }, Job { score: i32, text: Option<String>, title: String, url: Option<String>, }, Poll { descendants: i32, kids: Vec<u32>, parts: Vec<u32>, score: i32, title: String, }, PollOpt { poll: u32, score: i32, text: String, }, }
Variants
Show fields
Trait Implementations
impl Debug for ItemVariant
[src]
impl Debug for ItemVariant
[src]impl<'de> Deserialize<'de> for ItemVariant
[src]
impl<'de> Deserialize<'de> for ItemVariant
[src]fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]Deserialize this value from the given Serde deserializer. Read more
impl Serialize for ItemVariant
[src]
impl Serialize for ItemVariant
[src]Auto Trait Implementations
impl RefUnwindSafe for ItemVariant
impl Send for ItemVariant
impl Sync for ItemVariant
impl Unpin for ItemVariant
impl UnwindSafe for ItemVariant
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,