pub struct ChannelInstanceConfig {Show 25 fields
pub bot_token: Option<String>,
pub app_token: Option<String>,
pub base_url: Option<String>,
pub token: Option<String>,
pub channel_id: Option<String>,
pub room_id: Option<String>,
pub homeserver: Option<String>,
pub access_token: Option<String>,
pub server: Option<String>,
pub port: Option<u16>,
pub nick: Option<String>,
pub channel_name: Option<String>,
pub password: Option<String>,
pub relay_url: Option<String>,
pub private_key_hex: Option<String>,
pub smtp_host: Option<String>,
pub smtp_port: Option<u16>,
pub imap_host: Option<String>,
pub imap_port: Option<u16>,
pub username: Option<String>,
pub from_address: Option<String>,
pub allowed_users: Vec<String>,
pub allowed_pubkeys: Vec<String>,
pub allowed_senders: Vec<String>,
pub privacy_boundary: String,
}Expand description
Per-channel instance config from TOML [channels.<name>] sections.
Uses a common structure with optional fields; each channel type consumes
only the fields it needs.
Fields§
§bot_token: Option<String>§app_token: Option<String>§base_url: Option<String>§token: Option<String>§channel_id: Option<String>§room_id: Option<String>§homeserver: Option<String>§access_token: Option<String>§server: Option<String>§port: Option<u16>§nick: Option<String>§channel_name: Option<String>§password: Option<String>§relay_url: Option<String>§private_key_hex: Option<String>§smtp_host: Option<String>§smtp_port: Option<u16>§imap_host: Option<String>§imap_port: Option<u16>§username: Option<String>§from_address: Option<String>§allowed_users: Vec<String>§allowed_pubkeys: Vec<String>§allowed_senders: Vec<String>§privacy_boundary: StringPer-channel privacy boundary override.
Empty string means inherit from [channels] default_privacy_boundary.
Trait Implementations§
Source§impl Clone for ChannelInstanceConfig
impl Clone for ChannelInstanceConfig
Source§fn clone(&self) -> ChannelInstanceConfig
fn clone(&self) -> ChannelInstanceConfig
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 ChannelInstanceConfig
impl Debug for ChannelInstanceConfig
Source§impl Default for ChannelInstanceConfig
impl Default for ChannelInstanceConfig
Source§fn default() -> ChannelInstanceConfig
fn default() -> ChannelInstanceConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ChannelInstanceConfigwhere
ChannelInstanceConfig: Default,
impl<'de> Deserialize<'de> for ChannelInstanceConfigwhere
ChannelInstanceConfig: 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 ChannelInstanceConfig
impl RefUnwindSafe for ChannelInstanceConfig
impl Send for ChannelInstanceConfig
impl Sync for ChannelInstanceConfig
impl Unpin for ChannelInstanceConfig
impl UnsafeUnpin for ChannelInstanceConfig
impl UnwindSafe for ChannelInstanceConfig
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