Struct mx_tester::HomeserverConfig [−][src]
pub struct HomeserverConfig {
pub server_name: String,
pub public_baseurl: String,
pub registration_shared_secret: String,
pub extra_fields: HashMap<String, Value>,
}Expand description
Configuration for the homeserver.
This will be applied to homeserver.yaml.
Fields
server_name: StringThe name of the homeserver.
public_baseurl: StringThe URL to communicate to the server with.
The registration shared secret, if provided.
extra_fields: HashMap<String, Value>Any extra fields in the homeserver config
Implementations
Create a builder for building HomeserverConfig.
On the builder, call .server_name(...)(optional), .public_baseurl(...)(optional), .registration_shared_secret(...)(optional), .extra_fields(...)(optional) to set the values of the fields.
Finally, call .build() to create the instance of HomeserverConfig.
Trait Implementations
Returns the “default value” for a type. Read more
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 HomeserverConfig
impl Send for HomeserverConfig
impl Sync for HomeserverConfig
impl Unpin for HomeserverConfig
impl UnwindSafe for HomeserverConfig
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more