pub struct Client { /* private fields */ }Expand description
Mattermost API library entry point.
This type serve as an entrypoint for the Mattermost API through different “bridges” for the differents API endpoints categories (e.g. Client::posts)
Implementations§
Source§impl Client
impl Client
pub fn new(base_url: impl Into<String>) -> Self
pub fn with_user_agent(self, user_agent: impl Into<String>) -> Self
pub fn set_user_agent(&mut self, user_agent: impl Into<String>) -> &mut Self
pub fn with_access_token(self, access_token: impl Into<String>) -> Self
pub fn set_access_token(&mut self, access_token: impl Into<String>) -> &mut Self
pub fn configuration(&self) -> &Configuration
pub fn configuration_mut(&mut self) -> &mut Configuration
Auto Trait Implementations§
impl Freeze for Client
impl !RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl !UnwindSafe for Client
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