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