Available on crate feature
api
and (crate features appservice-api-c
or appservice-api-s
) only.Expand description
A namespace defined by an application service.
Used for appservice registration.
Fields
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
Trait Implementations
sourceimpl<'de> Deserialize<'de> for Namespace
impl<'de> Deserialize<'de> for Namespace
sourcefn deserialize<__D>(
__deserializer: __D
) -> Result<Namespace, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
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
sourceimpl Serialize for Namespace
impl Serialize for Namespace
sourcefn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
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
Auto Trait Implementations
impl RefUnwindSafe for Namespace
impl Send for Namespace
impl Sync for Namespace
impl Unpin for Namespace
impl UnwindSafe for Namespace
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more