pub 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 struct ArgsAdmin<T> {
pub body: T,
pub cookie: CookieJar,
pub origin: Option<OwnedServerName>,
pub sender_user: Option<OwnedUserId>,
pub sender_device: Option<OwnedDeviceId>,
pub appservice_info: Option<RegistrationInfo>,
pub json_body: Option<CanonicalJsonValue>,
pub rate_limit_ip: Result<IpAddr, &'static str>,
}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.
rate_limit_ip: Result<IpAddr, &'static str>Client address for password throttling, resolved independently of legacy IP hints.