pub struct CreatePost {
pub channel_id: String,
pub message: String,
pub root_id: Option<String>,
pub file_ids: Option<Vec<String>>,
pub props: Option<Value>,
pub metadata: Option<CreatePostRequestMetadata>,
pub set_online: Option<bool>,
}Fields§
§channel_id: StringThe channel ID to post in
message: StringThe message contents, can be formatted with Markdown
root_id: Option<String>The post ID to comment on
file_ids: Option<Vec<String>>A list of file IDs to associate with the post. Note that posts are limited to 5 files maximum. Please use additional posts for more files.
props: Option<Value>A general JSON property bag to attach to the post
metadata: Option<CreatePostRequestMetadata>§set_online: Option<bool>Whether to set the user status as online or not
Implementations§
Source§impl CreatePost
impl CreatePost
Sourcepub fn builder() -> CreatePostBuilder<((), (), (), (), (), (), ())>
pub fn builder() -> CreatePostBuilder<((), (), (), (), (), (), ())>
Create a builder for building CreatePost.
On the builder, call .channel_id(...), .message(...), .root_id(...)(optional), .file_ids(...)(optional), .props(...)(optional), .metadata(...)(optional), .set_online(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of CreatePost.
Source§impl CreatePost
impl CreatePost
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CreatePost
impl RefUnwindSafe for CreatePost
impl Send for CreatePost
impl Sync for CreatePost
impl Unpin for CreatePost
impl UnwindSafe for CreatePost
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