pub struct SuggestedPostInfo {
pub price: Option<SuggestedPostPrice>,
pub send_date: i32,
pub state: SuggestedPostState,
pub can_be_approved: bool,
pub can_be_declined: bool,
}Expand description
Contains information about a suggested post. If the post can be approved or declined, then changes to the post can be also suggested. Use sendMessage with reply to the message and suggested post information to suggest message changes. Use addOffer to suggest price or time changes
Fields§
§price: Option<SuggestedPostPrice>Price of the suggested post; may be null if the post is non-paid
send_date: i32Point in time (Unix timestamp) when the post is expected to be published; 0 if the specific date isn’t set yet
state: SuggestedPostStateState of the post
can_be_approved: boolTrue, if the suggested post can be approved by the current user using approveSuggestedPost; updates aren’t sent when value of this field changes
can_be_declined: boolTrue, if the suggested post can be declined by the current user using declineSuggestedPost; updates aren’t sent when value of this field changes
Trait Implementations§
Source§impl Clone for SuggestedPostInfo
impl Clone for SuggestedPostInfo
Source§fn clone(&self) -> SuggestedPostInfo
fn clone(&self) -> SuggestedPostInfo
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more