Expand description
A struct for simple API implementation
Examples
use r2ch::client::TwoCH;
let data = TwoCH::default()
.board(Some("pr"))
.thread(Some(1296509))
.res()
.unwrap();
println!("{}", data);
Fields
prefix: String
board: Option<&'a str>
thread: Option<u32>
Implementations
sourceimpl<'a> TwoCH<'a>
impl<'a> TwoCH<'a>
pub fn default() -> TwoCH<'a>
pub fn board(self, board: Option<&'a str>) -> TwoCH<'a>
pub fn thread(self, thread: Option<u32>) -> TwoCH<'a>
pub fn res(&self) -> Result<String, Box<Error>>
pub fn thread_list(&self) -> Result<String, Box<Error>>
pub fn catalog(&self) -> Result<String, Box<Error>>
pub fn catalog_num(&self) -> Result<String, Box<Error>>
pub fn boards_all(&self) -> Result<String, Box<Error>>
pub fn posts_by_board(&self, num: u32) -> Result<String, Box<Error>>
pub fn posts_by_thread(&self, post: u32) -> Result<String, Box<Error>>
pub fn post_by_thread(&self, post: u32) -> Result<String, Box<Error>>
Trait Implementations
Auto Trait Implementations
impl<'a> RefUnwindSafe for TwoCH<'a>
impl<'a> Send for TwoCH<'a>
impl<'a> Sync for TwoCH<'a>
impl<'a> Unpin for TwoCH<'a>
impl<'a> UnwindSafe for TwoCH<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more