pub struct SuggestedPostParameters {
pub price: Option<SuggestedPostPrice>,
pub send_date: Option<i64>,
pub extra: BTreeMap<String, Value>,
}Expand description
Contains parameters of a post that is being suggested by the bot.
Fields§
§price: Option<SuggestedPostPrice>Proposed price for the post. If the field is omitted, then the post is unpaid.
send_date: Option<i64>Proposed send date of the post. If specified, then the date must be between 300 second and 2678400 seconds (30 days) in the future. If the field is omitted, then the post can be published at any time within 30 days at the sole discretion of the user who approves it.
extra: BTreeMap<String, Value>Implementations§
Trait Implementations§
Source§impl Clone for SuggestedPostParameters
impl Clone for SuggestedPostParameters
Source§impl Debug for SuggestedPostParameters
impl Debug for SuggestedPostParameters
Source§impl Default for SuggestedPostParameters
impl Default for SuggestedPostParameters
Source§impl<'de> Deserialize<'de> for SuggestedPostParameters
impl<'de> Deserialize<'de> for SuggestedPostParameters
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 PartialEq for SuggestedPostParameters
impl PartialEq for SuggestedPostParameters
Source§impl Serialize for SuggestedPostParameters
impl Serialize for SuggestedPostParameters
impl StructuralPartialEq for SuggestedPostParameters
Auto Trait Implementations§
impl Freeze for SuggestedPostParameters
impl RefUnwindSafe for SuggestedPostParameters
impl Send for SuggestedPostParameters
impl Sync for SuggestedPostParameters
impl Unpin for SuggestedPostParameters
impl UnsafeUnpin for SuggestedPostParameters
impl UnwindSafe for SuggestedPostParameters
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