Crate rust_freely

Crate rust_freely 

Source
Expand description

Asynchronous wrapper for the WriteFreely/Write.as API, as the existing library is no longer maintained

Provides an implementation of the WriteFreely API. Currently, this library supports the following API features:

  • Token & Username/Password authentication
  • Most post management endpoints
  • All collection endpoints
  • All user endpoints except channels

Modules§

api_client
This module contains the main [Client] struct, which provides access to all of the other types & methods.
api_handlers
This module provides wrappers for top-level (ie, not referencing a specific entity) API methods
api_models
This module provides API model definitions & associated methods.
api_wrapper
Provides convenience functions for HTTP requests & serialization

Structs§

Client
Main Client struct
Collection
A struct describing a single Collection entity
Post
Main struct describing a single Post
User
Base User model

Enums§

ApiError
The main Error enum for this library
Auth
The desired authentication method
CollectionVisibility
Enum describing a collection’s visibility
PostAppearance
Enum describing the appearance/font of a post