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§
Trait Implementations§
Source§impl Debug for ItemVariant
impl Debug for ItemVariant
Source§impl<'de> Deserialize<'de> for ItemVariant
impl<'de> Deserialize<'de> for ItemVariant
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
Auto Trait Implementations§
impl Freeze for ItemVariant
impl RefUnwindSafe for ItemVariant
impl Send for ItemVariant
impl Sync for ItemVariant
impl Unpin for ItemVariant
impl UnwindSafe for ItemVariant
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