Module dot4ch::board [−][src]
Expand description
A cache of the entire board.
The Board
is a comprehensive list of all threads and posts on a board.
Please rely on updating induidual threads if you do not need all posts from a thead.
Time
Due to API constraints, a board is built rather slowly.
It is recommended to update a board in intervals of no less than than 10 minutes.
Example: Building a board and updating it
ⓘ
use dot4ch::{Client, Update, board::Board}; // Making a client let client = Client::new(); // Building the /g/ board let board = Board::build(&client, "g").await.unwrap(); /* Do something with the board */ // After a long interval, we update it. let g = board.update().await.unwrap(); println!("{:#?}", g);
Structs
Board | Holds an abstraction over |