pub struct BusinessGreetingMessageSettings {
pub shortcut_id: i32,
pub recipients: BusinessRecipients,
pub inactivity_days: i32,
}Expand description
Describes settings for greeting messages that are automatically sent by a Telegram Business account as response to incoming messages in an inactive private chat
Fields§
§shortcut_id: i32Unique quick reply shortcut identifier for the greeting messages
recipients: BusinessRecipientsChosen recipients of the greeting messages
inactivity_days: i32The number of days after which a chat will be considered as inactive; currently, must be on of 7, 14, 21, or 28
Trait Implementations§
Source§impl Clone for BusinessGreetingMessageSettings
impl Clone for BusinessGreetingMessageSettings
Source§fn clone(&self) -> BusinessGreetingMessageSettings
fn clone(&self) -> BusinessGreetingMessageSettings
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 Default for BusinessGreetingMessageSettings
impl Default for BusinessGreetingMessageSettings
Source§fn default() -> BusinessGreetingMessageSettings
fn default() -> BusinessGreetingMessageSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for BusinessGreetingMessageSettings
impl<'de> Deserialize<'de> for BusinessGreetingMessageSettings
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 BusinessGreetingMessageSettings
impl PartialEq for BusinessGreetingMessageSettings
Source§fn eq(&self, other: &BusinessGreetingMessageSettings) -> bool
fn eq(&self, other: &BusinessGreetingMessageSettings) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BusinessGreetingMessageSettings
Auto Trait Implementations§
impl Freeze for BusinessGreetingMessageSettings
impl RefUnwindSafe for BusinessGreetingMessageSettings
impl Send for BusinessGreetingMessageSettings
impl Sync for BusinessGreetingMessageSettings
impl Unpin for BusinessGreetingMessageSettings
impl UnwindSafe for BusinessGreetingMessageSettings
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