Struct ruma::api::federation::discovery::get_remote_server_keys_batch::v2::Request
source · [−]pub struct Request {
pub server_keys: BTreeMap<OwnedServerName, BTreeMap<OwnedKeyId<SigningKeyAlgorithm, KeyName>, QueryCriteria, Global>, Global>,
}
Available on crate feature
api
and (crate features federation-api-c
or federation-api-s
) only.Expand description
Data for a request to the get_remote_server_keys_batch
API endpoint.
Query for keys from multiple servers in a batch format.
Fields
server_keys: BTreeMap<OwnedServerName, BTreeMap<OwnedKeyId<SigningKeyAlgorithm, KeyName>, QueryCriteria, Global>, Global>
The query criteria.
The outer string key on the object is the server name (eg: matrix.org). The inner string key is the Key ID to query for the particular server. If no key IDs are given to be queried, the notary server should query for all keys. If no servers are given, the notary server must return an empty server_keys array in the response.
The notary server may return multiple keys regardless of the Key IDs given.
Implementations
sourceimpl Request
impl Request
sourcepub fn new(
server_keys: BTreeMap<OwnedServerName, BTreeMap<OwnedKeyId<SigningKeyAlgorithm, KeyName>, QueryCriteria, Global>, Global>
) -> Request
pub fn new(
server_keys: BTreeMap<OwnedServerName, BTreeMap<OwnedKeyId<SigningKeyAlgorithm, KeyName>, QueryCriteria, Global>, Global>
) -> Request
Creates a new Request
with the given query criteria.
Trait Implementations
sourceimpl IncomingRequest for Request
Available on crate feature server
only.
impl IncomingRequest for Request
Available on crate feature
server
only.type EndpointError = MatrixError
type EndpointError = MatrixError
A type capturing the error conditions that can be returned in the response.
type OutgoingResponse = Response
type OutgoingResponse = Response
Response type to return when the request is successful.
sourceimpl OutgoingRequest for Request
Available on crate feature client
only.
impl OutgoingRequest for Request
Available on crate feature
client
only.type EndpointError = MatrixError
type EndpointError = MatrixError
A type capturing the expected error conditions the server can return.
type IncomingResponse = Response
type IncomingResponse = Response
Response type returned when the request is successful.
sourcefn try_into_http_request<T>(
self,
base_url: &str,
access_token: SendAccessToken<'_>,
considering_versions: &[MatrixVersion]
) -> Result<Request<T>, IntoHttpError>where
T: Default + BufMut,
fn try_into_http_request<T>(
self,
base_url: &str,
access_token: SendAccessToken<'_>,
considering_versions: &[MatrixVersion]
) -> Result<Request<T>, IntoHttpError>where
T: Default + BufMut,
Tries to convert this request into an
http::Request
. Read moreimpl IncomingNonAuthRequest for Request
Available on crate feature
server
only.impl OutgoingNonAuthRequest for Request
Available on crate feature
client
only.Auto Trait Implementations
impl RefUnwindSafe for Request
impl Send for Request
impl Sync for Request
impl Unpin for Request
impl UnwindSafe for Request
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
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> OutgoingRequestAppserviceExt for Twhere
T: OutgoingRequest,
impl<T> OutgoingRequestAppserviceExt for Twhere
T: OutgoingRequest,
sourcefn try_into_http_request_with_user_id<T>(
self,
base_url: &str,
access_token: SendAccessToken<'_>,
user_id: &UserId,
considering_versions: &[MatrixVersion]
) -> Result<Request<T>, IntoHttpError>where
T: Default + BufMut,
fn try_into_http_request_with_user_id<T>(
self,
base_url: &str,
access_token: SendAccessToken<'_>,
user_id: &UserId,
considering_versions: &[MatrixVersion]
) -> Result<Request<T>, IntoHttpError>where
T: Default + BufMut,
Tries to convert this request into an
http::Request
and appends a virtual user_id
to
assert Appservice identity. Read more