grammarly/
lib.rs

1//! Grammarly crate - check your sentence for grammar.
2//!
3//! This crate uses [official API](https://www.grammarbot.io/) of
4//! [the grammarly service](http://grammarly.com/).
5//!
6//! The service has rate limits:
7//! As of this moment:
8//! - 250 requests/day (~7500/mo) with an API key,
9//! - 100 per day per IP address (~3000/mo) without an API key.
10//!
11//! # Usage
12//!
13#![cfg_attr(
14    feature = "client",
15    doc = "
16```rust,no_run
17fn main() {
18    let string = \"Hello this grammarly world!\";
19    let mut r = grammarly::Request::from(string);
20    // With an API key:
21    println!(\"Response: {:#?}\", r.api_key(\"99999999\").send());
22    // Without an API key:
23    println!(\"Response: {:#?}\", r.send());
24}
25```"
26)]
27#![deny(missing_docs)]
28#![deny(warnings)]
29
30#[cfg(feature = "client")]
31/// The client feature implementation.
32pub mod client;
33/// The request structures.
34pub mod request;
35/// The response structures.
36pub mod response;
37
38pub use request::{HttpRequest, Request};
39pub use response::Response;