pub struct WekanClient { /* private fields */ }Implementations§
Source§impl WekanClient
impl WekanClient
pub async fn register( &self, request: &RegisterRequest, ) -> Result<AuthSession, ClientError>
pub async fn login( &self, request: &LoginRequest, ) -> Result<AuthSession, ClientError>
pub async fn logout( &self, request: &LogoutRequest, token: &SecretString, ) -> Result<(), ClientError>
Source§impl WekanClient
impl WekanClient
pub async fn public_boards( &self, token: &SecretString, ) -> Result<Vec<BoardSummary>, ClientError>
pub async fn board_counts( &self, token: &SecretString, ) -> Result<BoardCounts, ClientError>
pub async fn board( &self, board_id: &str, token: &SecretString, ) -> Result<BoardDocument, ClientError>
pub async fn create_board( &self, request: &CreateBoardRequest, token: &SecretString, ) -> Result<CreateBoardResult, ClientError>
pub async fn rename_board( &self, board_id: &str, title: &str, token: &SecretString, ) -> Result<RenameBoardResult, ClientError>
pub async fn delete_board( &self, board_id: &str, token: &SecretString, ) -> Result<DeleteBoardResult, ClientError>
Source§impl WekanClient
impl WekanClient
pub async fn archive_card( &self, board_id: &str, list_id: &str, card_id: &str, token: &SecretString, ) -> Result<ArchiveCardResult, ClientError>
pub async fn restore_card( &self, board_id: &str, list_id: &str, card_id: &str, token: &SecretString, ) -> Result<RestoreCardResult, ClientError>
Source§impl WekanClient
impl WekanClient
pub async fn board_list_cards( &self, board_id: &str, list_id: &str, token: &SecretString, ) -> Result<Vec<CardSummary>, ClientError>
pub async fn card( &self, board_id: &str, list_id: &str, card_id: &str, token: &SecretString, ) -> Result<CardDocument, ClientError>
pub async fn create_card( &self, board_id: &str, list_id: &str, request: &CreateCardRequest, token: &SecretString, ) -> Result<CreateCardResult, ClientError>
pub async fn update_card( &self, board_id: &str, list_id: &str, card_id: &str, request: &UpdateCardRequest, token: &SecretString, ) -> Result<UpdateCardResult, ClientError>
pub async fn delete_card( &self, board_id: &str, list_id: &str, card_id: &str, token: &SecretString, ) -> Result<DeleteCardResult, ClientError>
Source§impl WekanClient
impl WekanClient
pub async fn card_comments( &self, board_id: &str, card_id: &str, token: &SecretString, ) -> Result<Vec<CommentSummary>, ClientError>
pub async fn comment( &self, board_id: &str, card_id: &str, comment_id: &str, token: &SecretString, ) -> Result<CommentDocument, ClientError>
pub async fn create_comment( &self, board_id: &str, card_id: &str, request: &CreateCommentRequest, token: &SecretString, ) -> Result<CreateCommentResult, ClientError>
pub async fn delete_comment( &self, board_id: &str, card_id: &str, comment_id: &str, token: &SecretString, ) -> Result<DeleteCommentResult, ClientError>
Source§impl WekanClient
impl WekanClient
pub async fn board_lists( &self, board_id: &str, token: &SecretString, ) -> Result<Vec<ListSummary>, ClientError>
pub async fn list( &self, board_id: &str, list_id: &str, token: &SecretString, ) -> Result<ListDocument, ClientError>
pub async fn create_list( &self, board_id: &str, request: &CreateListRequest, token: &SecretString, ) -> Result<CreateListResult, ClientError>
pub async fn update_list( &self, board_id: &str, list_id: &str, request: &UpdateListRequest, token: &SecretString, ) -> Result<UpdateListResult, ClientError>
pub async fn delete_list( &self, board_id: &str, list_id: &str, token: &SecretString, ) -> Result<DeleteListResult, ClientError>
Source§impl WekanClient
impl WekanClient
pub async fn board_swimlanes( &self, board_id: &str, token: &SecretString, ) -> Result<Vec<SwimlaneSummary>, ClientError>
pub async fn swimlane( &self, board_id: &str, swimlane_id: &str, token: &SecretString, ) -> Result<SwimlaneDocument, ClientError>
pub async fn create_swimlane( &self, board_id: &str, request: &CreateSwimlaneRequest, token: &SecretString, ) -> Result<CreateSwimlaneResult, ClientError>
pub async fn update_swimlane( &self, board_id: &str, swimlane_id: &str, request: &UpdateSwimlaneRequest, token: &SecretString, ) -> Result<UpdateSwimlaneResult, ClientError>
pub async fn delete_swimlane( &self, board_id: &str, swimlane_id: &str, token: &SecretString, ) -> Result<DeleteSwimlaneResult, ClientError>
Source§impl WekanClient
impl WekanClient
pub async fn update_user_without_action( &self, user_id: &str, token: &SecretString, ) -> Result<UserRecord, ClientError>
pub async fn current_user( &self, token: &SecretString, ) -> Result<CurrentUser, ClientError>
pub async fn user_cards( &self, query: &UserCardQuery, token: &SecretString, ) -> Result<Vec<UserCard>, ClientError>
pub async fn users( &self, token: &SecretString, ) -> Result<Vec<UserSummary>, ClientError>
pub async fn user( &self, selector: &str, token: &SecretString, ) -> Result<UserRecord, ClientError>
pub async fn create_user( &self, request: &CreateUserRequest, token: &SecretString, ) -> Result<CreateUserResult, ClientError>
pub async fn user_boards( &self, user_id: &str, token: &SecretString, ) -> Result<Vec<BoardSummary>, ClientError>
pub async fn user_action( &self, user_id: &str, action: UserAction, token: &SecretString, ) -> Result<UserActionResult, ClientError>
pub async fn delete_user( &self, user_id: &str, token: &SecretString, ) -> Result<String, ClientError>
Trait Implementations§
Source§impl Clone for WekanClient
impl Clone for WekanClient
Auto Trait Implementations§
impl !RefUnwindSafe for WekanClient
impl !UnwindSafe for WekanClient
impl Freeze for WekanClient
impl Send for WekanClient
impl Sync for WekanClient
impl Unpin for WekanClient
impl UnsafeUnpin for WekanClient
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