pub struct IrcConfig {
pub enabled: bool,
pub server: String,
pub port: u16,
pub nickname: String,
pub username: String,
pub channels: Vec<String>,
pub server_password: Option<String>,
pub nickserv_password: Option<String>,
pub sasl_password: Option<String>,
pub use_tls: bool,
pub verify_tls: bool,
pub allow_from: Vec<String>,
}Expand description
IRC channel configuration
Fields§
§enabled: bool§server: String§port: u16§nickname: String§username: String§channels: Vec<String>§server_password: Option<String>§nickserv_password: Option<String>§sasl_password: Option<String>§use_tls: bool§verify_tls: bool§allow_from: Vec<String>Trait Implementations§
Source§impl<'de> Deserialize<'de> for IrcConfig
impl<'de> Deserialize<'de> for IrcConfig
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 IrcConfig
impl RefUnwindSafe for IrcConfig
impl Send for IrcConfig
impl Sync for IrcConfig
impl Unpin for IrcConfig
impl UnsafeUnpin for IrcConfig
impl UnwindSafe for IrcConfig
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