Skip to main content

WekanClient

Struct WekanClient 

Source
pub struct WekanClient { /* private fields */ }

Implementations§

Source§

impl WekanClient

Source§

impl WekanClient

Source

pub async fn register( &self, request: &RegisterRequest, ) -> Result<AuthSession, ClientError>

Source

pub async fn login( &self, request: &LoginRequest, ) -> Result<AuthSession, ClientError>

Source

pub async fn logout( &self, request: &LogoutRequest, token: &SecretString, ) -> Result<(), ClientError>

Source§

impl WekanClient

Source

pub async fn copy_board( &self, board_id: &str, request: &CopyBoardRequest, token: &SecretString, ) -> Result<String, ClientError>

Source§

impl WekanClient

Source

pub async fn add_board_label( &self, board: &str, label: &AddBoardLabelRequest, token: &SecretString, ) -> Result<String, ClientError>

Source§

impl WekanClient

Source

pub async fn add_board_member( &self, board: &str, user: &str, permissions: &BoardMemberPermissions, token: &SecretString, ) -> Result<Vec<BoardSummary>, ClientError>

Source

pub async fn remove_board_member( &self, board: &str, user: &str, token: &SecretString, ) -> Result<Vec<BoardSummary>, ClientError>

Source

pub async fn update_board_member( &self, board: &str, user: &str, permissions: &BoardMemberPermissions, token: &SecretString, ) -> Result<u64, ClientError>

Source§

impl WekanClient

Source

pub async fn public_boards( &self, token: &SecretString, ) -> Result<Vec<BoardSummary>, ClientError>

Source

pub async fn board_counts( &self, token: &SecretString, ) -> Result<BoardCounts, ClientError>

Source

pub async fn board( &self, board_id: &str, token: &SecretString, ) -> Result<BoardDocument, ClientError>

Source

pub async fn create_board( &self, request: &CreateBoardRequest, token: &SecretString, ) -> Result<CreateBoardResult, ClientError>

Source

pub async fn rename_board( &self, board_id: &str, title: &str, token: &SecretString, ) -> Result<RenameBoardResult, ClientError>

Source

pub async fn delete_board( &self, board_id: &str, token: &SecretString, ) -> Result<DeleteBoardResult, ClientError>

Source§

impl WekanClient

Source

pub async fn archive_card( &self, board_id: &str, list_id: &str, card_id: &str, token: &SecretString, ) -> Result<ArchiveCardResult, ClientError>

Source

pub async fn restore_card( &self, board_id: &str, list_id: &str, card_id: &str, token: &SecretString, ) -> Result<RestoreCardResult, ClientError>

Source§

impl WekanClient

Source

pub async fn copy_card( &self, board_id: &str, list_id: &str, card_id: &str, request: &CopyCardRequest, token: &SecretString, ) -> Result<String, ClientError>

Source§

impl WekanClient

Source

pub async fn board_card_count( &self, board_id: &str, token: &SecretString, ) -> Result<u64, ClientError>

Source

pub async fn list_card_count( &self, board_id: &str, list_id: &str, token: &SecretString, ) -> Result<u64, ClientError>

Source

pub async fn card_by_id( &self, card_id: &str, token: &SecretString, ) -> Result<CardDocument, ClientError>

Source

pub async fn swimlane_cards( &self, board_id: &str, swimlane_id: &str, token: &SecretString, ) -> Result<Vec<SwimlaneCardSummary>, ClientError>

Source§

impl WekanClient

Source

pub async fn bulk_create_cards( &self, board: &str, list: &str, request: &BulkCreateCardsRequest, token: &SecretString, ) -> Result<Vec<BulkCreateCardResponse>, ClientError>

Source

pub async fn bulk_delete_cards( &self, board: &str, card_ids: &[String], token: &SecretString, ) -> Result<BulkDeleteCardsResponse, ClientError>

Source

pub async fn bulk_card_labels( &self, board: &str, request: &BulkLabelsRequest, token: &SecretString, ) -> Result<BulkLabelsResponse, BulkLabelsError>

Source§

impl WekanClient

Source

pub async fn set_card_custom_field( &self, board: &str, list: &str, card: &str, field: &str, request: &SetCardCustomFieldRequest, token: &SecretString, ) -> Result<SetCardCustomFieldResponse, ClientError>

Source

pub async fn cards_by_custom_field( &self, board: &str, field: &str, value: &str, token: &SecretString, ) -> Result<Vec<CardDocument>, ClientError>

Source§

impl WekanClient

Source

pub async fn add_card_member( &self, board: &str, list: &str, card: &str, user: &str, token: &SecretString, ) -> Result<CardMembershipResponse, ClientError>

Source

pub async fn remove_card_member( &self, board: &str, list: &str, card: &str, user: &str, token: &SecretString, ) -> Result<CardMembershipResponse, ClientError>

Source

pub async fn add_card_assignee( &self, board: &str, list: &str, card: &str, user: &str, token: &SecretString, ) -> Result<CardMembershipResponse, ClientError>

Source

pub async fn remove_card_assignee( &self, board: &str, list: &str, card: &str, user: &str, token: &SecretString, ) -> Result<CardMembershipResponse, ClientError>

Source§

impl WekanClient

Source

pub async fn board_list_cards( &self, board_id: &str, list_id: &str, token: &SecretString, ) -> Result<Vec<CardSummary>, ClientError>

Source

pub async fn card( &self, board_id: &str, list_id: &str, card_id: &str, token: &SecretString, ) -> Result<CardDocument, ClientError>

Source

pub async fn create_card( &self, board_id: &str, list_id: &str, request: &CreateCardRequest, token: &SecretString, ) -> Result<CreateCardResult, ClientError>

Source

pub async fn update_card( &self, board_id: &str, list_id: &str, card_id: &str, request: &UpdateCardRequest, token: &SecretString, ) -> Result<UpdateCardResult, ClientError>

Source

pub async fn delete_card( &self, board_id: &str, list_id: &str, card_id: &str, token: &SecretString, ) -> Result<DeleteCardResult, ClientError>

Source§

impl WekanClient

Source

pub async fn checklist_item( &self, board_id: &str, card_id: &str, checklist_id: &str, item_id: &str, token: &SecretString, ) -> Result<ChecklistItemDocument, ClientError>

Source

pub async fn create_checklist_item( &self, board_id: &str, card_id: &str, checklist_id: &str, request: &CreateChecklistItemRequest, token: &SecretString, ) -> Result<CreateChecklistItemResult, ClientError>

Source

pub async fn update_checklist_item( &self, board_id: &str, card_id: &str, checklist_id: &str, item_id: &str, request: &UpdateChecklistItemRequest, token: &SecretString, ) -> Result<UpdateChecklistItemResult, ClientError>

Source

pub async fn delete_checklist_item( &self, board_id: &str, card_id: &str, checklist_id: &str, item_id: &str, token: &SecretString, ) -> Result<DeleteChecklistItemResult, ClientError>

Source§

impl WekanClient

Source

pub async fn card_checklists( &self, board_id: &str, card_id: &str, token: &SecretString, ) -> Result<Vec<ChecklistSummary>, ClientError>

Source

pub async fn checklist( &self, board_id: &str, card_id: &str, checklist_id: &str, token: &SecretString, ) -> Result<ChecklistDocument, ClientError>

Source

pub async fn create_checklist( &self, board_id: &str, card_id: &str, request: &CreateChecklistRequest, token: &SecretString, ) -> Result<CreateChecklistResult, ClientError>

Source

pub async fn delete_checklist( &self, board_id: &str, card_id: &str, checklist_id: &str, token: &SecretString, ) -> Result<DeleteChecklistResult, ClientError>

Source§

impl WekanClient

Source

pub async fn card_comments( &self, board_id: &str, card_id: &str, token: &SecretString, ) -> Result<Vec<CommentSummary>, ClientError>

Source

pub async fn comment( &self, board_id: &str, card_id: &str, comment_id: &str, token: &SecretString, ) -> Result<CommentDocument, ClientError>

Source

pub async fn create_comment( &self, board_id: &str, card_id: &str, request: &CreateCommentRequest, token: &SecretString, ) -> Result<CreateCommentResult, ClientError>

Source

pub async fn delete_comment( &self, board_id: &str, card_id: &str, comment_id: &str, token: &SecretString, ) -> Result<DeleteCommentResult, ClientError>

Source§

impl WekanClient

Source

pub async fn board_custom_fields( &self, board: &str, token: &SecretString, ) -> Result<Vec<CustomFieldSummary>, ClientError>

Source

pub async fn custom_field( &self, board: &str, field: &str, token: &SecretString, ) -> Result<Option<CustomFieldDocument>, ClientError>

Source

pub async fn create_custom_field( &self, board: &str, request: &CreateCustomFieldRequest, token: &SecretString, ) -> Result<CustomFieldIdResponse, ClientError>

Source

pub async fn update_custom_field( &self, board: &str, field: &str, request: &UpdateCustomFieldRequest, token: &SecretString, ) -> Result<CustomFieldIdResponse, ClientError>

Source

pub async fn delete_custom_field( &self, board: &str, field: &str, token: &SecretString, ) -> Result<CustomFieldIdResponse, ClientError>

Source

pub async fn create_custom_field_items( &self, board: &str, field: &str, request: &CreateCustomFieldItemsRequest, token: &SecretString, ) -> Result<CustomFieldIdResponse, ClientError>

Source

pub async fn update_custom_field_item( &self, board: &str, field: &str, item: &str, request: &UpdateCustomFieldItemRequest, token: &SecretString, ) -> Result<CustomFieldIdResponse, ClientError>

Source

pub async fn delete_custom_field_item( &self, board: &str, field: &str, item: &str, token: &SecretString, ) -> Result<CustomFieldIdResponse, ClientError>

Source§

impl WekanClient

Source

pub async fn card_dependencies( &self, board: &str, card: &str, token: &SecretString, ) -> Result<Vec<CardDependencySummary>, ClientError>

Source

pub async fn board_dependencies( &self, board: &str, token: &SecretString, ) -> Result<Vec<BoardDependencyLine>, ClientError>

Source

pub async fn create_dependency( &self, board: &str, card: &str, request: &CreateDependencyRequest, token: &SecretString, ) -> Result<CreateDependencyResponse, ClientError>

Source

pub async fn update_dependency( &self, board: &str, card: &str, target: &str, request: &DependencyMetadata, token: &SecretString, ) -> Result<DependencyMutationResponse, ClientError>

Source

pub async fn delete_dependency( &self, board: &str, card: &str, target: &str, token: &SecretString, ) -> Result<DependencyMutationResponse, ClientError>

Source§

impl WekanClient

Source

pub async fn copy_list( &self, board_id: &str, list_id: &str, request: &TransferListRequest, token: &SecretString, ) -> Result<String, ClientError>

Source

pub async fn move_list( &self, board_id: &str, list_id: &str, request: &TransferListRequest, token: &SecretString, ) -> Result<String, ClientError>

Source§

impl WekanClient

Source

pub async fn board_lists( &self, board_id: &str, token: &SecretString, ) -> Result<Vec<ListSummary>, ClientError>

Source

pub async fn list( &self, board_id: &str, list_id: &str, token: &SecretString, ) -> Result<ListDocument, ClientError>

Source

pub async fn create_list( &self, board_id: &str, request: &CreateListRequest, token: &SecretString, ) -> Result<CreateListResult, ClientError>

Source

pub async fn update_list( &self, board_id: &str, list_id: &str, request: &UpdateListRequest, token: &SecretString, ) -> Result<UpdateListResult, ClientError>

Source

pub async fn delete_list( &self, board_id: &str, list_id: &str, token: &SecretString, ) -> Result<DeleteListResult, ClientError>

Source§

impl WekanClient

Source

pub async fn copy_swimlane( &self, board_id: &str, swimlane_id: &str, request: &TransferSwimlaneRequest, token: &SecretString, ) -> Result<String, ClientError>

Source

pub async fn move_swimlane( &self, board_id: &str, swimlane_id: &str, request: &TransferSwimlaneRequest, token: &SecretString, ) -> Result<String, ClientError>

Source§

impl WekanClient

Source

pub async fn board_swimlanes( &self, board_id: &str, token: &SecretString, ) -> Result<Vec<SwimlaneSummary>, ClientError>

Source

pub async fn swimlane( &self, board_id: &str, swimlane_id: &str, token: &SecretString, ) -> Result<SwimlaneDocument, ClientError>

Source

pub async fn create_swimlane( &self, board_id: &str, request: &CreateSwimlaneRequest, token: &SecretString, ) -> Result<CreateSwimlaneResult, ClientError>

Source

pub async fn update_swimlane( &self, board_id: &str, swimlane_id: &str, request: &UpdateSwimlaneRequest, token: &SecretString, ) -> Result<UpdateSwimlaneResult, ClientError>

Source

pub async fn delete_swimlane( &self, board_id: &str, swimlane_id: &str, token: &SecretString, ) -> Result<DeleteSwimlaneResult, ClientError>

Source§

impl WekanClient

Source

pub async fn update_user_without_action( &self, user_id: &str, token: &SecretString, ) -> Result<UserRecord, ClientError>

Source

pub async fn current_user( &self, token: &SecretString, ) -> Result<CurrentUser, ClientError>

Source

pub async fn user_cards( &self, query: &UserCardQuery, token: &SecretString, ) -> Result<Vec<UserCard>, ClientError>

Source

pub async fn users( &self, token: &SecretString, ) -> Result<Vec<UserSummary>, ClientError>

Source

pub async fn user( &self, selector: &str, token: &SecretString, ) -> Result<UserRecord, ClientError>

Source

pub async fn create_user( &self, request: &CreateUserRequest, token: &SecretString, ) -> Result<CreateUserResult, ClientError>

Source

pub async fn user_boards( &self, user_id: &str, token: &SecretString, ) -> Result<Vec<BoardSummary>, ClientError>

Source

pub async fn user_action( &self, user_id: &str, action: UserAction, token: &SecretString, ) -> Result<UserActionResult, ClientError>

Source

pub async fn delete_user( &self, user_id: &str, token: &SecretString, ) -> Result<String, ClientError>

Source§

impl WekanClient

Source

pub fn server(&self) -> &ServerUrl

Trait Implementations§

Source§

impl Clone for WekanClient

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WekanClient

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> PolicyExt for T
where T: ?Sized,

Source§

fn and<P, B, E>(self, other: P) -> And<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow only if self and other return Action::Follow. Read more
Source§

fn or<P, B, E>(self, other: P) -> Or<T, P>
where T: Sized + Policy<B, E>, P: Policy<B, E>,

Create a new Policy that returns Action::Follow if either self or other returns Action::Follow. Read more
Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more