pub struct SuggestedPostDeclined {
pub comment: Option<String>,
pub suggested_post_message: Option<Box<Message>>,
}Expand description
Describes a service message about the rejection of a suggested post.
Fields§
§comment: Option<String>Comment with which the post was declined.
suggested_post_message: Option<Box<Message>>Message containing the suggested post.
Note that the Message object in this field will not contain the reply_to_message field even if it itself is a reply.
Implementations§
Source§impl SuggestedPostDeclined
impl SuggestedPostDeclined
Sourcepub fn with_comment<T>(self, value: T) -> Self
pub fn with_comment<T>(self, value: T) -> Self
Sourcepub fn with_suggested_post_message(self, value: Message) -> Self
pub fn with_suggested_post_message(self, value: Message) -> Self
Trait Implementations§
Source§impl Clone for SuggestedPostDeclined
impl Clone for SuggestedPostDeclined
Source§fn clone(&self) -> SuggestedPostDeclined
fn clone(&self) -> SuggestedPostDeclined
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SuggestedPostDeclined
impl Debug for SuggestedPostDeclined
Source§impl Default for SuggestedPostDeclined
impl Default for SuggestedPostDeclined
Source§fn default() -> SuggestedPostDeclined
fn default() -> SuggestedPostDeclined
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SuggestedPostDeclined
impl<'de> Deserialize<'de> for SuggestedPostDeclined
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 From<SuggestedPostDeclined> for MessageData
impl From<SuggestedPostDeclined> for MessageData
Source§fn from(value: SuggestedPostDeclined) -> Self
fn from(value: SuggestedPostDeclined) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SuggestedPostDeclined
impl RefUnwindSafe for SuggestedPostDeclined
impl Send for SuggestedPostDeclined
impl Sync for SuggestedPostDeclined
impl Unpin for SuggestedPostDeclined
impl UnsafeUnpin for SuggestedPostDeclined
impl UnwindSafe for SuggestedPostDeclined
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