Struct matrix_appservice_rs::Namespace [−]
Expand description
A namespace defined by an application service.
Used for appservice registration.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.exclusive: bool
Whether this application service has exclusive access to events within this namespace.
regex: String
A regular expression defining which values this namespace includes.
Implementations
impl Namespace
impl Namespace
Trait Implementations
impl<'de> Deserialize<'de> for Namespace
impl<'de> Deserialize<'de> for Namespace
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Namespace, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
pub fn deserialize<__D>(
__deserializer: __D
) -> Result<Namespace, <__D as Deserializer<'de>>::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
pub fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error> where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Namespace
Auto Trait Implementations
impl RefUnwindSafe for Namespace
impl UnwindSafe for Namespace
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