pub struct SuggestedPostParametersBuilder {
pub price: Option<BoxWrapper<Unbox<SuggestedPostPrice>>>,
pub send_date: Option<i64>,
}Expand description
Contains parameters of a post that is being suggested by the bot.
Fields§
§price: Option<BoxWrapper<Unbox<SuggestedPostPrice>>>Optional. Proposed price for the post. If the field is omitted, then the post is unpaid.
send_date: Option<i64>Optional. 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.
Implementations§
Source§impl SuggestedPostParametersBuilder
impl SuggestedPostParametersBuilder
pub fn new() -> Self
Sourcepub fn set_price(self, price: SuggestedPostPrice) -> Self
pub fn set_price(self, price: SuggestedPostPrice) -> Self
Optional. Proposed price for the post. If the field is omitted, then the post is unpaid.
Sourcepub fn set_send_date(self, send_date: i64) -> Self
pub fn set_send_date(self, send_date: i64) -> Self
Optional. 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.
pub fn build(self) -> SuggestedPostParameters
Trait Implementations§
Source§impl Clone for SuggestedPostParametersBuilder
impl Clone for SuggestedPostParametersBuilder
Source§fn clone(&self) -> SuggestedPostParametersBuilder
fn clone(&self) -> SuggestedPostParametersBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for SuggestedPostParametersBuilder
impl Default for SuggestedPostParametersBuilder
Source§fn default() -> SuggestedPostParametersBuilder
fn default() -> SuggestedPostParametersBuilder
Source§impl<'de> Deserialize<'de> for SuggestedPostParametersBuilder
impl<'de> Deserialize<'de> for SuggestedPostParametersBuilder
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 Ord for SuggestedPostParametersBuilder
impl Ord for SuggestedPostParametersBuilder
Source§fn cmp(&self, other: &SuggestedPostParametersBuilder) -> Ordering
fn cmp(&self, other: &SuggestedPostParametersBuilder) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for SuggestedPostParametersBuilder
impl PartialEq for SuggestedPostParametersBuilder
Source§fn eq(&self, other: &SuggestedPostParametersBuilder) -> bool
fn eq(&self, other: &SuggestedPostParametersBuilder) -> bool
self and other values to be equal, and is used by ==.Source§impl PartialOrd for SuggestedPostParametersBuilder
impl PartialOrd for SuggestedPostParametersBuilder
impl Eq for SuggestedPostParametersBuilder
impl StructuralPartialEq for SuggestedPostParametersBuilder
Auto Trait Implementations§
impl Freeze for SuggestedPostParametersBuilder
impl RefUnwindSafe for SuggestedPostParametersBuilder
impl Send for SuggestedPostParametersBuilder
impl Sync for SuggestedPostParametersBuilder
impl Unpin for SuggestedPostParametersBuilder
impl UnsafeUnpin for SuggestedPostParametersBuilder
impl UnwindSafe for SuggestedPostParametersBuilder
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.