pub struct Listing {
pub before: Option<Box<str>>,
pub after: Option<Box<str>>,
pub modhash: Box<str>,
pub children: Vec<Thing>,
}
Expand description
Used to paginate content that is too long to display in one go. Add the query argument before or after with the value given to get the previous or next page. This is usually used in conjunction with a count argument. Exception: Unlike the other classes documented on this page, Listing is not a thing subclass, as it inherits directly from the Python base class, Object. Although it does have data and kind as parameters, it does not have id and name. A listing’s kind will always be Listing and its data will be a List of things. kind == “Listing” See https://github.com/reddit-archive/reddit/wiki/JSON#listing
Fields§
§before: Option<Box<str>>
The fullname of the listing that follows before this page. null if there is no previous page.
after: Option<Box<str>>
The fullname of the listing that follows after this page. null if there is no next page.
modhash: Box<str>
This modhash is not the same modhash provided upon login. You do not need to update your user’s modhash everytime you get a new modhash. You can reuse the modhash given upon login.
children: Vec<Thing>
A list of things that this Listing wraps.