pub struct Resolver<'a> { /* private fields */ }Implementations§
Source§impl<'a> Resolver<'a>
impl<'a> Resolver<'a>
pub fn new(client: &'a ClickUpClient, cfg: &ClickUpConfig) -> Result<Self>
Sourcepub fn with_refresh(self, refresh: bool) -> Self
pub fn with_refresh(self, refresh: bool) -> Self
Bypass the disk cache (--refresh).
pub fn client(&self) -> &ClickUpClient
pub fn cache(&self) -> &Cache
Sourcepub async fn hierarchy(&self, refresh: bool) -> Result<Hierarchy>
pub async fn hierarchy(&self, refresh: bool) -> Result<Hierarchy>
Space → Folder → List tree. Cost: 1 + 2 × spaces requests.
Sourcepub async fn list(&self, input: &str) -> Result<ListRef>
pub async fn list(&self, input: &str) -> Result<ListRef>
id | alias | Space/Folder/List | Space/List | unique list name.
pub async fn space(&self, input: &str) -> Result<SpaceRef>
Sourcepub async fn folder(&self, input: &str) -> Result<FolderRef>
pub async fn folder(&self, input: &str) -> Result<FolderRef>
id | Space/Folder | unique folder name.
Sourcepub async fn list_detail(&self, list_id: &str) -> Result<List>
pub async fn list_detail(&self, list_id: &str) -> Result<List>
GET /v2/list/{id} with caching (statuses rarely change).
Sourcepub async fn status(&self, list_id: &str, input: &str) -> Result<String>
pub async fn status(&self, list_id: &str, input: &str) -> Result<String>
Canonical status spelling for a list (case-insensitive match).
pub async fn members(&self) -> Result<Vec<User>>
Sourcepub async fn member(&self, input: &str) -> Result<User>
pub async fn member(&self, input: &str) -> Result<User>
me | id | email | username (exact, then unique partial match).
pub async fn fields(&self, list_id: &str) -> Result<Vec<CustomField>>
Sourcepub async fn field(&self, list_id: &str, input: &str) -> Result<CustomField>
pub async fn field(&self, list_id: &str, input: &str) -> Result<CustomField>
Field by id or (case-insensitive) name within a list.
Sourcepub async fn field_value(
&self,
field: &CustomField,
raw: &str,
) -> Result<FieldValue>
pub async fn field_value( &self, field: &CustomField, raw: &str, ) -> Result<FieldValue>
Human input → API value, resolving members / tasks where needed.
For users / tasks fields, prefix an item with - to remove it.
Auto Trait Implementations§
impl<'a> !Freeze for Resolver<'a>
impl<'a> !RefUnwindSafe for Resolver<'a>
impl<'a> !UnwindSafe for Resolver<'a>
impl<'a> Send for Resolver<'a>
impl<'a> Sync for Resolver<'a>
impl<'a> Unpin for Resolver<'a>
impl<'a> UnsafeUnpin for Resolver<'a>
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