pub struct MessageSchedulingStateSendAtDate {
pub send_date: i32,
pub repeat_period: i32,
}Expand description
The message will be sent at the specified date
Fields§
§send_date: i32Point in time (Unix timestamp) when the message will be sent. The date must be within 367 days in the future
repeat_period: i32Period after which the message will be sent again; in seconds; 0 if never; for Telegram Premium users only; may be non-zero only in sendMessage and forwardMessages with one message requests; must be one of 0, 86400, 7 * 86400, 14 * 86400, 30 * 86400, 91 * 86400, 182 * 86400, 365 * 86400, or additionally 60, or 300 in the Test DC
Trait Implementations§
Source§impl Clone for MessageSchedulingStateSendAtDate
impl Clone for MessageSchedulingStateSendAtDate
Source§fn clone(&self) -> MessageSchedulingStateSendAtDate
fn clone(&self) -> MessageSchedulingStateSendAtDate
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 Default for MessageSchedulingStateSendAtDate
impl Default for MessageSchedulingStateSendAtDate
Source§fn default() -> MessageSchedulingStateSendAtDate
fn default() -> MessageSchedulingStateSendAtDate
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageSchedulingStateSendAtDate
impl<'de> Deserialize<'de> for MessageSchedulingStateSendAtDate
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 MessageSchedulingStateSendAtDate
impl PartialEq for MessageSchedulingStateSendAtDate
Source§fn eq(&self, other: &MessageSchedulingStateSendAtDate) -> bool
fn eq(&self, other: &MessageSchedulingStateSendAtDate) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MessageSchedulingStateSendAtDate
Auto Trait Implementations§
impl Freeze for MessageSchedulingStateSendAtDate
impl RefUnwindSafe for MessageSchedulingStateSendAtDate
impl Send for MessageSchedulingStateSendAtDate
impl Sync for MessageSchedulingStateSendAtDate
impl Unpin for MessageSchedulingStateSendAtDate
impl UnsafeUnpin for MessageSchedulingStateSendAtDate
impl UnwindSafe for MessageSchedulingStateSendAtDate
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