Module orca::data

source ·
Expand description

Reddit data structures

Structs

Data structure that represents the user that is currently authorized
A struct representing a reddit comment. Does not contain all fields possible in a comment yet.
A struct that represents a stream of comments from a subreddit as they are posted. To use it simply create a for loop with this is the source. It will automatically retrieve comments as needed. The subreddit can be all to create a stream of comments from all of reddit.
A listing of Things. Has special implementations, currently just for Comments.
A struct that represents a submission to reddit
Data structure that represents a user’s info

Enums

Sort type of a subreddit
Time parameter of a subreddit sort
An enum representing a thread which can either be a comment or a more object that represents a list of comments that have not yet been loaded.
Struct that represent’s a user that could either be authorized or not

Traits

A trait representing a reddit Thing that can be deserialized from JSON