Struct ruma_events::room::server_acl::ServerAclEventContent [−][src]
pub struct ServerAclEventContent { pub allow_ip_literals: bool, pub allow: Vec<String>, pub deny: Vec<String>, }
Expand description
The payload for ServerAclEvent
.
Fields
allow_ip_literals: bool
True to allow server names that are IP address literals. False to deny.
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.
This 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.
This defaults to an empty list when not provided.
Implementations
Trait Implementations
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
A matrix event identifier, like m.room.message
.
Constructs the given event content.
The redacted form of the event’s content.
Transform self
into a redacted form (removing most or all fields) according to the spec. Read more
Auto Trait Implementations
impl RefUnwindSafe for ServerAclEventContent
impl Send for ServerAclEventContent
impl Sync for ServerAclEventContent
impl Unpin for ServerAclEventContent
impl UnwindSafe for ServerAclEventContent
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
pub fn vzip(self) -> V