Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,12 @@ impl Mattermost {
self
}

/// Updates the client that is used for requests
pub fn with_client(mut self, client: Client) -> Self {
self.client = client;
self
}

/// Get a session token from the stored login_id and password.
/// Required when using login_id and password authentication,
/// before making any calls to the instance API.
Expand Down