Struct rawr::responses::BasicThing
[−]
[src]
pub struct BasicThing<T> { pub kind: String, pub data: T, }
A base structure that can represent both 'Thing' objects and 'Listing' objects, which both
return a kind
and data
.
Fields
kind | An identifier that specifies the type of object that this is. The valid kinds are: - t1_ - Comment - t2_ - Account - t3_ - Link - t4_ - Message - t5_ - Subreddit - t6_ - Award - t8_ - PromoCampaign |
data | The data contained by this struct. This will vary depending on the type parameter because each endpoint returns different contents. |