Enum rtdlib::types::MessageSchedulingState
source · [−]pub enum MessageSchedulingState {
SendAtDate(MessageSchedulingStateSendAtDate),
SendWhenOnline(MessageSchedulingStateSendWhenOnline),
// some variants omitted
}
Expand description
Contains information about the time when a scheduled message will be sent
Variants
SendAtDate(MessageSchedulingStateSendAtDate)
The message will be sent at the specified date
SendWhenOnline(MessageSchedulingStateSendWhenOnline)
The message will be sent when the peer will be online. Applicable to private chats only and when the exact online status of the peer is known
Implementations
pub fn on_send_when_online<F: FnOnce(&MessageSchedulingStateSendWhenOnline)>(
&self,
fnc: F
) -> &Self
Trait Implementations
Performs the conversion.
fn deserialize<D>(deserializer: D) -> Result<MessageSchedulingState, D::Error> where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<MessageSchedulingState, D::Error> where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for MessageSchedulingState
impl Send for MessageSchedulingState
impl Sync for MessageSchedulingState
impl Unpin for MessageSchedulingState
impl UnwindSafe for MessageSchedulingState
Blanket Implementations
Mutably borrows from an owned value. Read more