pub struct Job {
pub id: Id,
pub deleted: Option<bool>,
pub by: Option<String>,
pub time: u64,
pub dead: Option<bool>,
pub kids: Option<Vec<Id>>,
pub text: Option<String>,
pub url: Option<String>,
pub title: String,
}
Fields§
§id: Id
The item’s unique id.
deleted: Option<bool>
true if the item is deleted.
by: Option<String>
The username of the item’s author.
time: u64
Creation date of the item, in Unix Time.
dead: Option<bool>
true if the item is dead.
kids: Option<Vec<Id>>
The ids of the item’s comments, in ranked display order.
text: Option<String>
The comment, story or poll text. HTML.
url: Option<String>
The URL of the story.
title: String
The title of the story, poll or job.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Job
impl<'de> Deserialize<'de> for Job
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 Job
impl RefUnwindSafe for Job
impl Send for Job
impl Sync for Job
impl Unpin for Job
impl UnwindSafe for Job
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