Module api

Module api 

Source
Expand description

An implementation/analogue of E926’s JSON replies

The api module and all it’s submodule provides structs that implements Serde’s Deserialize trait.

What this means in less technical jargon, is that when you want to turn json acquired from requesting to E926 into legible rust form, you use the descendants of this module specifically.

It is not recommended to use api objects directly for most high-level purposes, instead, refer to Client

Structs§

Alternates
Favorites
Flags
Analogue to "flags": {...} JSON object
Note
Analogue to /notes/<id>.json
Pool
Analogue to /pools/<id>.json
Post
PostFile
PostFlag
Analogue to /post_flags/<id>.json
PostPreview
PostRelations
Analogue to "relationships": {...} JSON object
PostSample
Score
Analogue to "score": {...} JSON object
SearchNotes
SearchPools
SearchPostFlags
SearchPosts
SearchTagAliases
SearchTags
TagAliasQuery
TagQuery
Tags

Enums§

Category
Extension
Kind
PageSearchType
PostFlagType
PostWrapper
Analogue to /posts/<id>.json
Rating
Represents the rating of a Post

Constants§

FLAGS_URL
NOTES_URL
POOLS_URL
POSTS_URL
TAGS_URL

Traits§

Create
Delete
List
Revert
Update

Type Aliases§

IdType
Type for id-representing numbers
Posts
Analogue to /posts.json
TagType