Crate lemmy_client
source ·Expand description
A Rust HTTP client for Lemmy. If used when targeting WASM, uses the browser’s built-in fetch API to reduce bundle size.
§Example
use lemmy_client::{LemmyClient, ClientOptions};
let client = LemmyClient::new(ClientOptions {
domain: String::from("lemmy.ml"),
secure: true
});
let res = client.get_site().await;
assert!(res.is_some());
Re-exports§
pub use lemmy_api_common;
Structs§
- Options for instantiating a
LemmyClient
. - An error returned from the API.
- API wrapper for lemmy