pub struct PatchPostRequest {
pub is_pinned: Option<bool>,
pub message: Option<String>,
pub file_ids: Option<Vec<String>>,
pub has_reactions: Option<bool>,
pub props: Option<String>,
}
Fields§
§is_pinned: Option<bool>
Set to true
to pin the post to the channel it is in
message: Option<String>
The message text of the post
file_ids: Option<Vec<String>>
The list of files attached to this post
has_reactions: Option<bool>
Set to true
if the post has reactions to it
props: Option<String>
A general JSON property bag to attach to the post
Implementations§
Source§impl PatchPostRequest
impl PatchPostRequest
pub fn new() -> PatchPostRequest
Trait Implementations§
Source§impl Clone for PatchPostRequest
impl Clone for PatchPostRequest
Source§fn clone(&self) -> PatchPostRequest
fn clone(&self) -> PatchPostRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for PatchPostRequest
impl Debug for PatchPostRequest
Source§impl Default for PatchPostRequest
impl Default for PatchPostRequest
Source§fn default() -> PatchPostRequest
fn default() -> PatchPostRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PatchPostRequest
impl<'de> Deserialize<'de> for PatchPostRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PatchPostRequest
impl PartialEq for PatchPostRequest
Source§impl Serialize for PatchPostRequest
impl Serialize for PatchPostRequest
impl StructuralPartialEq for PatchPostRequest
Auto Trait Implementations§
impl Freeze for PatchPostRequest
impl RefUnwindSafe for PatchPostRequest
impl Send for PatchPostRequest
impl Sync for PatchPostRequest
impl Unpin for PatchPostRequest
impl UnwindSafe for PatchPostRequest
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