pub struct MatrixConfig {
pub enabled: bool,
pub homeserver_url: String,
pub access_token_env: String,
pub allowed_rooms: Vec<String>,
pub auto_join: bool,
pub sync_timeout_seconds: u64,
pub encryption_enabled: bool,
pub device_store_path: Option<PathBuf>,
pub device_display_name: String,
}Fields§
§enabled: bool§homeserver_url: StringHomeserver URL (e.g. https://matrix.example.com).
access_token_env: StringEnvironment variable name holding the access token.
allowed_rooms: Vec<String>Room IDs the agent is allowed to participate in. Empty = allow all.
auto_join: boolAutomatically join rooms when invited.
sync_timeout_seconds: u64Sync timeout in seconds (long-poll duration).
encryption_enabled: boolEnable Olm/Megolm end-to-end encryption.
device_store_path: Option<PathBuf>Directory for device keys and session state. Defaults to
~/.roboticus/matrix_crypto.
device_display_name: StringDevice display name advertised to other Matrix clients.
Trait 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<'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