pub struct TelegramSessionConfig {
pub rotation_hours: u64,
pub max_messages: usize,
}Expand description
Telegram session management configuration.
Fields§
§rotation_hours: u64Automatically rotate to a new session after this many hours of inactivity. Set to 0 to disable time-based rotation.
max_messages: usizeMaximum number of messages per session before auto-rotating. Set to 0 for unlimited.
Trait Implementations§
Source§impl Clone for TelegramSessionConfig
impl Clone for TelegramSessionConfig
Source§fn clone(&self) -> TelegramSessionConfig
fn clone(&self) -> TelegramSessionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 TelegramSessionConfig
impl Debug for TelegramSessionConfig
Source§impl Default for TelegramSessionConfig
impl Default for TelegramSessionConfig
Source§impl<'de> Deserialize<'de> for TelegramSessionConfig
impl<'de> Deserialize<'de> for TelegramSessionConfig
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
Auto Trait Implementations§
impl Freeze for TelegramSessionConfig
impl RefUnwindSafe for TelegramSessionConfig
impl Send for TelegramSessionConfig
impl Sync for TelegramSessionConfig
impl Unpin for TelegramSessionConfig
impl UnsafeUnpin for TelegramSessionConfig
impl UnwindSafe for TelegramSessionConfig
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