mattermost_client/posts/
mod.rs

1use crate::Client;
2
3pub mod create;
4
5#[derive(Debug, Clone, Copy)]
6pub struct Posts;
7
8impl Posts {
9    pub fn create_post(self) -> create::CreatePostBuilder {
10        create::CreatePost::builder()
11    }
12}
13
14impl Client {
15    /// Access the Mattermost Posts API
16    pub fn posts(&self) -> Posts {
17        Posts
18    }
19}