pub struct QQBotConfig {
pub name: String,
pub uin: String,
pub api: String,
pub dms: Vec<u64>,
pub groups: Vec<u64>,
pub delay: u64,
pub with_torrent: bool,
}Fields§
§name: StringThe name of the bot.
uin: StringThe uin (QQ number) of the bot.
api: Stringgo-cqhttp HTTP api. like: http://qqbot.me
dms: Vec<u64>qq personal contacts
groups: Vec<u64>qq groups
delay: u64The delay between two messages. (ms)
with_torrent: boolIf the message contains torrents’ URLs.
Trait Implementations§
Source§impl Clone for QQBotConfig
impl Clone for QQBotConfig
Source§fn clone(&self) -> QQBotConfig
fn clone(&self) -> QQBotConfig
Returns a duplicate 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 QQBotConfig
impl Debug for QQBotConfig
Source§impl Default for QQBotConfig
impl Default for QQBotConfig
Source§fn default() -> QQBotConfig
fn default() -> QQBotConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for QQBotConfigwhere
QQBotConfig: Default,
impl<'de> Deserialize<'de> for QQBotConfigwhere
QQBotConfig: Default,
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 QQBotConfig
impl RefUnwindSafe for QQBotConfig
impl Send for QQBotConfig
impl Sync for QQBotConfig
impl Unpin for QQBotConfig
impl UnwindSafe for QQBotConfig
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