Crate writefreely_client
source ·Expand description
WriteFreely
API library for Rust
This library is an opinionated API client for the WriteFreely API
. While
it mostly follows the REST API, it abstracts away, or changes a few things,
for the sake of convenience.
Start at struct.Client
to discover what the crate provides.
The library targets the latest release of WriteFreely (0.15.0 as of this
writing). Support for previous releases are available when compiled with the
writefreely-0.14
feature flag.
Modules§
- Types for creating, updating, and working with
Collections
on a WriteFreely instance. - The library tries its best to map error codes to sensible types, listed below. Functions that return a
Result
, will always haveError
as the error type. - Types for creating, updating, and otherwise working with posts on a WriteFreely instance,
anonymous
andcollection posts
alike. - Types for creating, updating, and working with
Posts
on a WriteFreely instance. Supports both anonymous and logged in users.
Structs§
- The main entry point of the library: a client for the WriteFreely API.
- Low-level API helpers.
- Custom, relaxed date & time format.