pub struct BusinessAwayMessageSettings {
pub shortcut_id: i32,
pub recipients: BusinessRecipients,
pub schedule: BusinessAwayMessageSchedule,
pub offline_only: bool,
}Expand description
Describes settings for messages that are automatically sent by a Telegram Business account when it is away
Fields§
§shortcut_id: i32Unique quick reply shortcut identifier for the away messages
recipients: BusinessRecipientsChosen recipients of the away messages
schedule: BusinessAwayMessageScheduleSettings used to check whether the current user is away
offline_only: boolTrue, if the messages must not be sent if the account was online in the last 10 minutes
Trait Implementations§
Source§impl Clone for BusinessAwayMessageSettings
impl Clone for BusinessAwayMessageSettings
Source§fn clone(&self) -> BusinessAwayMessageSettings
fn clone(&self) -> BusinessAwayMessageSettings
Returns a copy 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 BusinessAwayMessageSettings
impl Debug for BusinessAwayMessageSettings
Source§impl<'de> Deserialize<'de> for BusinessAwayMessageSettings
impl<'de> Deserialize<'de> for BusinessAwayMessageSettings
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
impl StructuralPartialEq for BusinessAwayMessageSettings
Auto Trait Implementations§
impl Freeze for BusinessAwayMessageSettings
impl RefUnwindSafe for BusinessAwayMessageSettings
impl Send for BusinessAwayMessageSettings
impl Sync for BusinessAwayMessageSettings
impl Unpin for BusinessAwayMessageSettings
impl UnwindSafe for BusinessAwayMessageSettings
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