Skip to content

Commit

Permalink
Ignore doctest
Browse files Browse the repository at this point in the history
  • Loading branch information
kuy committed Sep 25, 2019
1 parent 144928a commit b13e277
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//!
//! ## Usage
//!
//! ```rust
//! ```ignore
//! // Declaration
//! use jsonbox::{Client, Error};
//! use serde::{Deserialize, Serialize};
Expand Down Expand Up @@ -32,7 +32,7 @@
//!
//! ### CREATE
//!
//! ```rust
//! ```ignore
//! let data = Data {
//! name: "kuy".into(),
//! message: "Hello, Jsonbox!".into(),
Expand All @@ -45,35 +45,35 @@
//!
//! #### all (default parameters)
//!
//! ```rust
//! ```ignore
//! let all = client.read().all::<Data>()?;
//! println!("READ: len={}, all={:?}", all.len(), all);
//! ```
//!
//! #### with specific id
//!
//! ```rust
//! ```ignore
//! let (record, meta) = client.read().id("5d876d852a780700177c0557")?;
//! println!("READ: data={:?}, meta={:?}", record, meta);
//! ```
//!
//! #### with limit
//!
//! ```rust
//! ```ignore
//! let few = client.read().limit(10).run::<Data>()?;
//! println!("READ: len={}, few={:?}", few.len(), few);
//! ```
//!
//! #### with skip
//!
//! ```rust
//! ```ignore
//! let rest = client.read().skip(5).run::<Data>()?;
//! println!("READ: len={}, rest={:?}", rest.len(), rest);
//! ```
//!
//! #### with order (asc/desc)
//!
//! ```rust
//! ```ignore
//! let asc = client.read().order_by("name").run::<Data>()?;
//! println!("READ: len={}, asc={:?}", asc.len(), asc);
//!
Expand All @@ -83,7 +83,7 @@
//!
//! #### with filter
//!
//! ```rust
//! ```ignore
//! let filtered = client
//! .read()
//! .filter_by("name:{}", "Json Box")
Expand All @@ -95,15 +95,15 @@
//!
//! ### UPDATE
//!
//! ```rust
//! ```ignore
//! let data = Data::new("kuy", "Hello, Jsonbox!");
//! client.update("5d876d852a780700177c0557", &data)?;
//! println!("UPDATE: OK");
//! ```
//!
//! ### DELETE
//!
//! ```rust
//! ```ignore
//! client.delete("5d876d852a780700177c0557")?;
//! println!("DELETE: OK");
//! ```
Expand Down

0 comments on commit b13e277

Please sign in to comment.