pub struct ApiClient { /* private fields */ }
Implementationsยง
Sourceยงimpl ApiClient
impl ApiClient
pub fn new(access_token: &str) -> Result<Self>
pub fn with_base_url(access_token: &str, base_url: &str) -> Result<Self>
pub fn with_options( access_token: &str, base_url: Option<&str>, options: Option<ApiClientOptions>, ) -> Result<Self>
pub async fn get_me(&self) -> Result<User>
pub async fn get_history(&self) -> Result<Vec<Note>>
pub async fn get_note_list(&self) -> Result<Vec<Note>>
pub async fn get_note(&self, note_id: &str) -> Result<SingleNote>
pub async fn create_note( &self, payload: &CreateNoteOptions, ) -> Result<SingleNote>
pub async fn update_note_content( &self, note_id: &str, content: &str, ) -> Result<()>
pub async fn update_note( &self, note_id: &str, payload: &UpdateNoteOptions, ) -> Result<()>
pub async fn delete_note(&self, note_id: &str) -> Result<()>
pub async fn get_teams(&self) -> Result<Vec<Team>>
pub async fn get_team_notes(&self, team_path: &str) -> Result<Vec<Note>>
pub async fn create_team_note( &self, team_path: &str, payload: &CreateNoteOptions, ) -> Result<SingleNote>
pub async fn update_team_note_content( &self, team_path: &str, note_id: &str, content: &str, ) -> Result<()>
pub async fn update_team_note( &self, team_path: &str, note_id: &str, payload: &UpdateNoteOptions, ) -> Result<()>
pub async fn delete_team_note( &self, team_path: &str, note_id: &str, ) -> Result<()>
Auto Trait Implementationsยง
impl Freeze for ApiClient
impl !RefUnwindSafe for ApiClient
impl Send for ApiClient
impl Sync for ApiClient
impl Unpin for ApiClient
impl !UnwindSafe for ApiClient
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