pub struct Config {Show 16 fields
pub bot_token: String,
pub chat_id: ChatId,
pub status: Status,
pub parse_mode: ParseMode,
pub notify_on: NotifyOn,
pub api_base: String,
pub templates: TemplateInputs,
pub message_thread_id: Option<ThreadId>,
pub edit_message_id: Option<MessageId>,
pub disable_notification: bool,
pub disable_web_page_preview: bool,
pub connect_timeout: u64,
pub timeout: u64,
pub retries: u32,
pub max_retry_after: u64,
pub fail_on_error: bool,
}Expand description
Fully resolved, fully typed settings for one run.
Fields§
§bot_token: String§chat_id: ChatId§status: Status§parse_mode: ParseMode§notify_on: NotifyOn§api_base: String§templates: TemplateInputs§message_thread_id: Option<ThreadId>§edit_message_id: Option<MessageId>§disable_notification: bool§disable_web_page_preview: bool§connect_timeout: u64§timeout: u64§retries: u32§max_retry_after: u64§fail_on_error: boolImplementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin for Config
impl UnwindSafe for Config
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