pub struct BookstackClient { /* private fields */ }
Implementations§
Source§impl BookstackClient
impl BookstackClient
pub fn new(bookstack_url: &str, token_id: &str, token_secret: &str) -> Self
pub fn get_shelves(&self) -> Result<Vec<ShelveListItem>, Box<dyn Error>>
pub fn get_shelve(&self, id: u32) -> Result<Shelve, Box<dyn Error>>
pub fn get_book(&self, id: u32) -> Result<Book, Box<dyn Error>>
pub fn get_chapter(&self, id: u32) -> Result<Chapter, Box<dyn Error>>
pub fn clone_page( &self, export_type: &ExportType, parent_path: &PathBuf, page_id: u32, ) -> Result<(), Box<dyn Error>>
pub fn clone_chapter( &self, export_type: &ExportType, parent_path: &PathBuf, chapter_id: u32, ) -> Result<(), Box<dyn Error>>
pub fn clone_book( &self, export_type: &ExportType, parent_path: &PathBuf, book_id: u32, ) -> Result<(), Box<dyn Error>>
pub fn clone_shelve( &self, export_type: &ExportType, parent_path: &PathBuf, shelve_id: u32, ) -> Result<(), Box<dyn Error>>
pub fn clone_bookstack( &self, export_type: &ExportType, output_dir: &str, ) -> Result<(), Box<dyn Error>>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BookstackClient
impl !RefUnwindSafe for BookstackClient
impl Send for BookstackClient
impl Sync for BookstackClient
impl Unpin for BookstackClient
impl !UnwindSafe for BookstackClient
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more