pub struct RegistrationInit {
pub id: String,
pub url: Option<String>,
pub as_token: String,
pub hs_token: String,
pub sender_localpart: String,
pub namespaces: Namespaces,
pub rate_limited: Option<bool>,
pub protocols: Option<Vec<String>>,
}Expand description
Initial set of fields of Registration.
This struct will not be updated even if additional fields are added to Registration in a new
(non-breaking) release of the Matrix specification.
Used for appservice registration.
Fields§
§id: StringA unique, user - defined ID of the application service which will never change.
url: Option<String>The URL for the application service.
Optionally set to null if no traffic is required.
as_token: StringA unique token for application services to use to authenticate requests to Homeservers.
hs_token: StringA unique token for Homeservers to use to authenticate requests to application services.
sender_localpart: StringThe localpart of the user associated with the application service.
namespaces: NamespacesA list of users, aliases and rooms namespaces that the application service controls.
rate_limited: Option<bool>Whether requests from masqueraded users are rate-limited.
The sender is excluded.
protocols: Option<Vec<String>>The external protocols which the application service provides (e.g. IRC).
Trait Implementations§
Source§impl Debug for RegistrationInit
impl Debug for RegistrationInit
Source§impl From<RegistrationInit> for Registration
impl From<RegistrationInit> for Registration
Source§fn from(init: RegistrationInit) -> Self
fn from(init: RegistrationInit) -> Self
Auto Trait Implementations§
impl Freeze for RegistrationInit
impl RefUnwindSafe for RegistrationInit
impl Send for RegistrationInit
impl Sync for RegistrationInit
impl Unpin for RegistrationInit
impl UnwindSafe for RegistrationInit
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T, UT> HandleAlloc<UT> for T
impl<T, UT> HandleAlloc<UT> for T
§fn new_handle(value: Arc<T>) -> Handle
fn new_handle(value: Arc<T>) -> Handle
§unsafe fn clone_handle(handle: Handle) -> Handle
unsafe fn clone_handle(handle: Handle) -> Handle
§unsafe fn consume_handle(handle: Handle) -> Arc<T>
unsafe fn consume_handle(handle: Handle) -> Arc<T>
Arc<> Read more