Struct ddmw_client::conf::Config
source · pub struct Config {
pub channel: Option<String>,
pub auth: Option<Auth>,
pub sender: Option<Sender>,
pub receiver: Option<Receiver>,
}
Fields§
§channel: Option<String>
§auth: Option<Auth>
§sender: Option<Sender>
§receiver: Option<Receiver>
Implementations§
source§impl Config
impl Config
pub fn set_appch(&mut self, appch: AppChannel) -> &mut Self
pub fn get_appch(&self) -> Result<Option<AppChannel>, Error>
pub fn set_sender_msgif(&mut self, pa: ProtAddr) -> &mut Self
pub fn get_sender_msgif(&self) -> Result<Option<ProtAddr>, Error>
pub fn set_auth_account(&mut self, name: &str) -> &mut Self
pub fn set_auth_pass(&mut self, pass: &str) -> &mut Self
pub fn set_auth_pass_file(&mut self, passfile: &str) -> &mut Self
pub fn set_auth_token(&mut self, tkn: &str) -> &mut Self
pub fn set_auth_token_file(&mut self, tknfile: &str) -> &mut Self
Trait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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 RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin 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