pub struct TelegraphClient { /* private fields */ }Implementations§
Source§impl TelegraphClient
impl TelegraphClient
pub fn new() -> Self
pub fn create_account( &self, short_name: &str, author_name: Option<&str>, author_url: Option<&str>, ) -> Result<Account, Box<dyn Error>>
pub fn create_page( &self, access_token: &str, title: &str, author_name: Option<&str>, author_url: Option<&str>, content: &[Node], return_content: Option<bool>, ) -> Result<Page, Box<dyn Error>>
pub fn edit_account_info( &self, access_token: &str, short_name: Option<&str>, author_name: Option<&str>, author_url: Option<&str>, ) -> Result<Account, Box<dyn Error>>
pub fn edit_page( &self, access_token: &str, path: &str, title: &str, author_name: Option<&str>, author_url: Option<&str>, content: &[Node], return_content: Option<bool>, ) -> Result<Page, Box<dyn Error>>
pub fn get_account_info( &self, access_token: &str, fields: Option<&[&str]>, ) -> Result<Account, Box<dyn Error>>
pub fn get_page( &self, path: &str, return_content: Option<bool>, ) -> Result<Page, Box<dyn Error>>
pub fn get_page_list( &self, access_token: &str, offset: Option<u32>, limit: Option<u32>, ) -> Result<PageList, Box<dyn Error>>
pub fn get_views( &self, path: &str, year: Option<u32>, month: Option<u8>, day: Option<u8>, hour: Option<u8>, ) -> Result<PageViews, Box<dyn Error>>
pub fn revoke_access_token( &self, access_token: &str, ) -> Result<Account, Box<dyn Error>>
Auto Trait Implementations§
impl !RefUnwindSafe for TelegraphClient
impl !UnwindSafe for TelegraphClient
impl Freeze for TelegraphClient
impl Send for TelegraphClient
impl Sync for TelegraphClient
impl Unpin for TelegraphClient
impl UnsafeUnpin for TelegraphClient
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