Skip to main content

WekanClient

Struct WekanClient 

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

Implementations§

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 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 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 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_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 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