pub struct Thing {
pub id: Option<Box<str>>,
pub name: Option<Box<str>>,
pub data: ThingData,
}
Expand description
Reddit base class. Listing things have neither name nor id because they are indefinite objects. That is, they are system generated, not user submitted, and are subject to change quickly and expire. See https://github.com/reddit-archive/reddit/wiki/JSON#thing-reddit-base-class
Fields§
§id: Option<Box<str>>
this item’s identifier, e.g. “8xwlg”
name: Option<Box<str>>
Fullname of comment, e.g. “t1_c3v7f8u”
data: ThingData
Data
Trait Implementations§
source§impl<'de> Deserialize<'de> for Thing
impl<'de> Deserialize<'de> for Thing
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 Thing
impl RefUnwindSafe for Thing
impl Send for Thing
impl Sync for Thing
impl Unpin for Thing
impl UnwindSafe for Thing
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