pub struct SuggestedPostParameters {
pub price: Option<SuggestedPostPrice>,
pub send_date: Option<i64>,
}Expand description
Parameters for a post being suggested by the bot.
Pass this in suggested_post_parameters on outgoing send methods.
Fields§
§price: Option<SuggestedPostPrice>Proposed price for the post; absent if the post is unpaid.
send_date: Option<i64>Proposed Unix send date; must be 300–2,678,400 seconds in the future if set.
Trait Implementations§
Source§impl Clone for SuggestedPostParameters
impl Clone for SuggestedPostParameters
Source§fn clone(&self) -> SuggestedPostParameters
fn clone(&self) -> SuggestedPostParameters
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 SuggestedPostParameters
impl Debug 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
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