pub struct ClickUpClient { /* private fields */ }Expand description
Cliente para interagir com a API do ClickUp (v2 apenas)
Usa apenas a API v2 que é estável e suporta todos os recursos necessários:
- tasks, lists, custom fields, folders, attachments, webhooks, spaces
Implementations§
Source§impl ClickUpClient
impl ClickUpClient
Sourcepub fn with_timeouts(
api_token: impl Into<String>,
total_timeout_secs: u64,
connect_timeout_secs: u64,
) -> Result<Self>
pub fn with_timeouts( api_token: impl Into<String>, total_timeout_secs: u64, connect_timeout_secs: u64, ) -> Result<Self>
Cria um novo cliente com timeouts customizados
Sourcepub async fn find_list_by_name(
&self,
folder_id: &str,
list_name: &str,
) -> Result<Option<ListInfo>>
pub async fn find_list_by_name( &self, folder_id: &str, list_name: &str, ) -> Result<Option<ListInfo>>
Sourcepub async fn create_list(
&self,
folder_id: &str,
list_data: &CreateListRequest,
) -> Result<ListInfo>
pub async fn create_list( &self, folder_id: &str, list_data: &CreateListRequest, ) -> Result<ListInfo>
Trait Implementations§
Source§impl Clone for ClickUpClient
impl Clone for ClickUpClient
Source§fn clone(&self) -> ClickUpClient
fn clone(&self) -> ClickUpClient
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ClickUpClient
impl !RefUnwindSafe for ClickUpClient
impl Send for ClickUpClient
impl Sync for ClickUpClient
impl Unpin 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