pub(crate) type ArgsAdmin<T> = Args<T, true>;Expand description
Requires administrator authorization before returning request body errors.
Routes opt in through this alias; the default extractor retains its ordering.
Aliased Type§
pub(crate) struct ArgsAdmin<T> {
pub(crate) body: T,
pub(crate) cookie: CookieJar,
pub(crate) origin: Option<OwnedServerName>,
pub(crate) sender_user: Option<OwnedUserId>,
pub(crate) sender_device: Option<OwnedDeviceId>,
pub(crate) appservice_info: Option<RegistrationInfo>,
pub(crate) json_body: Option<CanonicalJsonValue>,
}Fields§
§body: TRequest struct body
Cookies received from the useragent.
origin: Option<OwnedServerName>Authenticated X-Matrix origin, absent for non-federation requests.
sender_user: Option<OwnedUserId>Authenticated local user, absent when no local user is identified.
sender_device: Option<OwnedDeviceId>Authenticated local device, absent for device-less authentication.
appservice_info: Option<RegistrationInfo>Authenticated appservice registration, absent for other callers.
json_body: Option<CanonicalJsonValue>Parsed canonical JSON, absent for raw or noncanonical request bodies.