pub struct SuggestedPostApprovedBuilder {
pub suggested_post_message: Option<BoxWrapper<Box<Message>>>,
pub price: Option<BoxWrapper<Unbox<SuggestedPostPrice>>>,
pub send_date: i64,
}Expand description
Describes a service message about the approval of a suggested post.
Fields§
§suggested_post_message: Option<BoxWrapper<Box<Message>>>Optional. 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.
price: Option<BoxWrapper<Unbox<SuggestedPostPrice>>>Optional. Amount paid for the post
send_date: i64Date when the post will be published
Implementations§
Source§impl SuggestedPostApprovedBuilder
impl SuggestedPostApprovedBuilder
pub fn new(send_date: i64) -> Self
Sourcepub fn set_suggested_post_message(
self,
suggested_post_message: Box<Message>,
) -> Self
pub fn set_suggested_post_message( self, suggested_post_message: Box<Message>, ) -> Self
Optional. 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.
Sourcepub fn set_price(self, price: SuggestedPostPrice) -> Self
pub fn set_price(self, price: SuggestedPostPrice) -> Self
Optional. Amount paid for the post
Sourcepub fn set_send_date(self, send_date: i64) -> Self
pub fn set_send_date(self, send_date: i64) -> Self
Date when the post will be published
pub fn build(self) -> SuggestedPostApproved
Trait Implementations§
Source§impl Clone for SuggestedPostApprovedBuilder
impl Clone for SuggestedPostApprovedBuilder
Source§fn clone(&self) -> SuggestedPostApprovedBuilder
fn clone(&self) -> SuggestedPostApprovedBuilder
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 SuggestedPostApprovedBuilder
impl Debug for SuggestedPostApprovedBuilder
Source§impl Default for SuggestedPostApprovedBuilder
impl Default for SuggestedPostApprovedBuilder
Source§fn default() -> SuggestedPostApprovedBuilder
fn default() -> SuggestedPostApprovedBuilder
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SuggestedPostApprovedBuilder
impl<'de> Deserialize<'de> for SuggestedPostApprovedBuilder
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 Hash for SuggestedPostApprovedBuilder
impl Hash for SuggestedPostApprovedBuilder
Source§impl Ord for SuggestedPostApprovedBuilder
impl Ord for SuggestedPostApprovedBuilder
Source§fn cmp(&self, other: &SuggestedPostApprovedBuilder) -> Ordering
fn cmp(&self, other: &SuggestedPostApprovedBuilder) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for SuggestedPostApprovedBuilder
impl PartialEq for SuggestedPostApprovedBuilder
Source§fn eq(&self, other: &SuggestedPostApprovedBuilder) -> bool
fn eq(&self, other: &SuggestedPostApprovedBuilder) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SuggestedPostApprovedBuilder
impl PartialOrd for SuggestedPostApprovedBuilder
impl Eq for SuggestedPostApprovedBuilder
impl StructuralPartialEq for SuggestedPostApprovedBuilder
Auto Trait Implementations§
impl Freeze for SuggestedPostApprovedBuilder
impl RefUnwindSafe for SuggestedPostApprovedBuilder
impl Send for SuggestedPostApprovedBuilder
impl Sync for SuggestedPostApprovedBuilder
impl Unpin for SuggestedPostApprovedBuilder
impl UnsafeUnpin for SuggestedPostApprovedBuilder
impl UnwindSafe for SuggestedPostApprovedBuilder
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
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
Compare self to
key and return true if they are equal.