pub struct SuggestedPostApprovalFailed {
pub price: SuggestedPostPrice,
pub suggested_post_message: Option<Box<Message>>,
}Expand description
Describes a service message about the failed approval of a suggested post.
Currently, only caused by insufficient user funds at the time of approval.
Fields§
§price: SuggestedPostPriceExpected price of the post.
suggested_post_message: Option<Box<Message>>Message containing the suggested post whose approval has failed.
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 SuggestedPostApprovalFailed
impl SuggestedPostApprovalFailed
Sourcepub fn new(price: SuggestedPostPrice) -> Self
pub fn new(price: SuggestedPostPrice) -> 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 SuggestedPostApprovalFailed
impl Clone for SuggestedPostApprovalFailed
Source§fn clone(&self) -> SuggestedPostApprovalFailed
fn clone(&self) -> SuggestedPostApprovalFailed
Returns a duplicate of the value. Read more
1.0.0 · 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 SuggestedPostApprovalFailed
impl Debug for SuggestedPostApprovalFailed
Source§impl<'de> Deserialize<'de> for SuggestedPostApprovalFailed
impl<'de> Deserialize<'de> for SuggestedPostApprovalFailed
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
impl StructuralPartialEq for SuggestedPostApprovalFailed
Auto Trait Implementations§
impl Freeze for SuggestedPostApprovalFailed
impl RefUnwindSafe for SuggestedPostApprovalFailed
impl Send for SuggestedPostApprovalFailed
impl Sync for SuggestedPostApprovalFailed
impl Unpin for SuggestedPostApprovalFailed
impl UnwindSafe for SuggestedPostApprovalFailed
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