pub struct SuggestedPostApprovalFailed {
pub suggested_post_message: Option<BoxWrapper<Box<Message>>>,
pub price: BoxWrapper<Unbox<SuggestedPostPrice>>,
}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§
§suggested_post_message: Option<BoxWrapper<Box<Message>>>Optional. 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.
price: BoxWrapper<Unbox<SuggestedPostPrice>>Expected price of the post
Implementations§
Source§impl SuggestedPostApprovalFailed
impl SuggestedPostApprovalFailed
pub fn noskip(self) -> NoSkipSuggestedPostApprovalFailed
Source§impl SuggestedPostApprovalFailed
impl SuggestedPostApprovalFailed
pub fn new<A: Into<SuggestedPostPrice>>(price: A) -> Self
Sourcepub fn get_suggested_post_message<'a>(&'a self) -> Option<&'a Message>
pub fn get_suggested_post_message<'a>(&'a self) -> Option<&'a Message>
Optional. 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.
Sourcepub fn set_suggested_post_message<'a>(
&'a mut self,
suggested_post_message: Option<Message>,
) -> &'a mut Self
pub fn set_suggested_post_message<'a>( &'a mut self, suggested_post_message: Option<Message>, ) -> &'a mut Self
Optional. 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.
Sourcepub fn get_price<'a>(&'a self) -> &'a SuggestedPostPrice
pub fn get_price<'a>(&'a self) -> &'a SuggestedPostPrice
Expected price of the post
Sourcepub fn set_price<'a>(&'a mut self, price: SuggestedPostPrice) -> &'a mut Self
pub fn set_price<'a>(&'a mut self, price: SuggestedPostPrice) -> &'a mut Self
Expected price of the post
Trait Implementations§
Source§impl Clone for SuggestedPostApprovalFailed
impl Clone for SuggestedPostApprovalFailed
Source§fn clone(&self) -> SuggestedPostApprovalFailed
fn clone(&self) -> SuggestedPostApprovalFailed
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SuggestedPostApprovalFailed
impl Debug for SuggestedPostApprovalFailed
Source§impl Default for SuggestedPostApprovalFailed
impl Default for SuggestedPostApprovalFailed
Source§fn default() -> SuggestedPostApprovalFailed
fn default() -> 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>,
Source§impl From<BoxWrapper<Box<SuggestedPostApprovalFailed>>> for SuggestedPostApprovalFailed
impl From<BoxWrapper<Box<SuggestedPostApprovalFailed>>> for SuggestedPostApprovalFailed
Source§fn from(t: BoxWrapper<Box<SuggestedPostApprovalFailed>>) -> Self
fn from(t: BoxWrapper<Box<SuggestedPostApprovalFailed>>) -> Self
Source§impl From<BoxWrapper<Unbox<SuggestedPostApprovalFailed>>> for SuggestedPostApprovalFailed
impl From<BoxWrapper<Unbox<SuggestedPostApprovalFailed>>> for SuggestedPostApprovalFailed
Source§fn from(t: BoxWrapper<Unbox<SuggestedPostApprovalFailed>>) -> Self
fn from(t: BoxWrapper<Unbox<SuggestedPostApprovalFailed>>) -> Self
Source§impl From<NoSkipSuggestedPostApprovalFailed> for SuggestedPostApprovalFailed
impl From<NoSkipSuggestedPostApprovalFailed> for SuggestedPostApprovalFailed
Source§fn from(t: NoSkipSuggestedPostApprovalFailed) -> Self
fn from(t: NoSkipSuggestedPostApprovalFailed) -> Self
Source§impl Hash for SuggestedPostApprovalFailed
impl Hash for SuggestedPostApprovalFailed
Source§impl Into<NoSkipSuggestedPostApprovalFailed> for SuggestedPostApprovalFailed
impl Into<NoSkipSuggestedPostApprovalFailed> for SuggestedPostApprovalFailed
Source§fn into(self) -> NoSkipSuggestedPostApprovalFailed
fn into(self) -> NoSkipSuggestedPostApprovalFailed
Source§impl Ord for SuggestedPostApprovalFailed
impl Ord for SuggestedPostApprovalFailed
Source§fn cmp(&self, other: &SuggestedPostApprovalFailed) -> Ordering
fn cmp(&self, other: &SuggestedPostApprovalFailed) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialOrd for SuggestedPostApprovalFailed
impl PartialOrd for SuggestedPostApprovalFailed
impl Eq for SuggestedPostApprovalFailed
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 UnsafeUnpin 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.