pub struct ClickUpClient { /* private fields */ }Implementations§
Source§impl ClickUpClient
impl ClickUpClient
pub fn new(token: &str, timeout_secs: u64) -> Result<Self, CliError>
pub async fn get(&self, path: &str) -> Result<Value, CliError>
pub async fn post(&self, path: &str, body: &Value) -> Result<Value, CliError>
pub async fn put(&self, path: &str, body: &Value) -> Result<Value, CliError>
pub async fn delete(&self, path: &str) -> Result<Value, CliError>
pub async fn patch(&self, path: &str, body: &Value) -> Result<Value, CliError>
pub async fn delete_with_body( &self, path: &str, body: &Value, ) -> Result<Value, CliError>
pub async fn upload_file( &self, path: &str, file_path: &Path, ) -> Result<Value, CliError>
Sourcepub fn with_base_url(self, base_url: &str) -> Self
pub fn with_base_url(self, base_url: &str) -> Self
Override the base URL. Used in tests to point at a mock server.
Auto Trait Implementations§
impl Freeze for ClickUpClient
impl !RefUnwindSafe for ClickUpClient
impl Send for ClickUpClient
impl Sync for ClickUpClient
impl Unpin for ClickUpClient
impl UnsafeUnpin for ClickUpClient
impl !UnwindSafe for ClickUpClient
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