ruma_events::room::server_acl

Type Alias PossiblyRedactedRoomServerAclEventContent

Source
pub type PossiblyRedactedRoomServerAclEventContent = RoomServerAclEventContent;
Expand description

The possibly redacted form of RoomServerAclEventContent.

This type is used when it’s not obvious whether the content is redacted or not.

Aliased Type§

struct PossiblyRedactedRoomServerAclEventContent {
    pub allow_ip_literals: bool,
    pub allow: Vec<String>,
    pub deny: Vec<String>,
}

Fields§

§allow_ip_literals: bool

Whether to allow server names that are IP address literals.

This is strongly recommended to be set to false as servers running with IP literal names are strongly discouraged in order to require legitimate homeservers to be backed by a valid registered domain name.

§allow: Vec<String>

The server names to allow in the room, excluding any port information.

Wildcards may be used to cover a wider range of hosts, where * matches zero or more characters and ? matches exactly one character.

Defaults to an empty list when not provided, effectively disallowing every server.

§deny: Vec<String>

The server names to disallow in the room, excluding any port information.

Wildcards may be used to cover a wider range of hosts, where * matches zero or more characters and ? matches exactly one character.

Defaults to an empty list when not provided.