Crate wallhaven_rs

Crate wallhaven_rs 

Source
Expand description

§wallhaven-rs

wallhaven-rs is a wallhaven api wrapper.

The entry point of everything is WallhavenClient.

Re-exports§

pub use mime;

Structs§

Avatar
The avatar url of someone who uploaded a wallpaper, in different resolutions.
Categories
Categories to filter the wallpapers by
CollectionItemsRequest
The collection items request object.
CollectionItemsRequestBuilder
Use builder syntax to set the inputs and finish with build().
Meta
Meta informations for the search results, used mostly to continue the search
Purities
Purities (the level of lewdiness) to filter by
SearchRequest
The search request object.
SearchRequestBuilder
Use builder syntax to set the inputs and finish with build_internal().
SearchResult
Search results, see properties for more information
Tag
A tag to represent a wallpaper, which is itself categorized into categories
TagQuery
A struct representing a tag query
Thumbnails
The thumbnail of a wallpaper, in different sizes
Uploader
The uploader of a wallpaper.
UserCollection
An user’s collection of wallpapers
UserSettings
Represents user settings, mostly the default search settings
WallhavenClient
A wallhaven api client.
WallpaperDetails
The main character on wallhaven x)
WallpaperSummary
This struct represents a wallpaper returned in the paginated search, which is more lightweight than a WallpaperDetails

Enums§

AspectRatio
An aspect ratio to filter by.
Color
Colors you can filter by.
ColorParseError
Used only by models::enums::color::Color to parse FromStr
Error
Possible errors inside the wallhaven-rs crate
FileType
Wallhaven file types
Query
The tag query information
Resolution
Resolutions you can filter by.
SearchQueryItem
A single search query item
SortingOrder
The sorting order.
SortingType
The property to sort by.
ThumbnailResolution
The wallpaper’s thumbnail resolution
ToplistRange
The time span for the toplist.
UserGroup
The group the user belongs to, for example User, Moderator