pub struct Config {
pub bookmarks_autojoin: bool,
pub default_nick: RoomNick,
pub disco: (ClientType, String),
pub lang: Vec<String>,
pub website: String,
}Expand description
Store Agent configuration. Differs from state which is generated at runtime
Fields§
§bookmarks_autojoin: boolSynchronize bookmarks based on autojoin flag.
The client will join and leave based on the value of the autojoin flag on the (pubsub)
bookmark item.
If this bookmarks_autojoin attribute is set to false, autojoin set to false won’t make
the client leave a room, neither will the removal of a bookmark item. This will only happen
after the client is restarted, as these items won’t be automatically joined anymore.
https://xmpp.org/extensions/xep-0402.html#notification
default_nick: RoomNickNickname to use if no other is specified.
disco: (ClientType, String)Client “Disco” identity.
lang: Vec<String>Default language conveyed in stanza. Mostly useful for messages content.
website: StringProject website advertized in client capabilities.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
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