pub struct MatrixConfig {
pub enabled: bool,
pub homeserver: String,
pub user_id: String,
pub access_token: String,
pub device_id: String,
pub e2ee_enabled: bool,
pub max_media_bytes: usize,
pub allow_from: Vec<String>,
pub group_allow_from: Vec<String>,
pub sync_timeout_ms: u64,
pub sync_stop_grace_seconds: u64,
}Expand description
Matrix channel configuration
Fields§
§enabled: bool§homeserver: String§user_id: String§access_token: String§device_id: String§e2ee_enabled: bool§max_media_bytes: usize§allow_from: Vec<String>§group_allow_from: Vec<String>§sync_timeout_ms: u64§sync_stop_grace_seconds: u64Trait Implementations§
Source§impl Clone for MatrixConfig
impl Clone for MatrixConfig
Source§fn clone(&self) -> MatrixConfig
fn clone(&self) -> MatrixConfig
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 MatrixConfig
impl Debug for MatrixConfig
Source§impl Default for MatrixConfig
impl Default for MatrixConfig
Source§impl<'de> Deserialize<'de> for MatrixConfig
impl<'de> Deserialize<'de> for MatrixConfig
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 MatrixConfig
impl RefUnwindSafe for MatrixConfig
impl Send for MatrixConfig
impl Sync for MatrixConfig
impl Unpin for MatrixConfig
impl UnsafeUnpin for MatrixConfig
impl UnwindSafe for MatrixConfig
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