chore: Make all applicable spec links use the latest spec instead of a specific version

This commit is contained in:
Kévin Commaille 2023-02-10 12:42:32 +01:00 committed by Kévin Commaille
parent 9194c60f4a
commit f159776f52
308 changed files with 395 additions and 395 deletions

View file

@ -20,7 +20,7 @@ Here is a list of helpful resources you can consult:
## Documentation
- [Matrix spec Documentation](https://spec.matrix.org/v1.4/)
- [Matrix spec Documentation](https://spec.matrix.org/latest/)
## Chat Rooms
@ -154,7 +154,7 @@ the latest minor version of the Matrix specification.
### Endpoint Module Structure
Matrix uses [versioned endpoints](https://spec.matrix.org/v1.4/#endpoint-versioning) (with a few small exceptions),
Matrix uses [versioned endpoints](https://spec.matrix.org/latest/#endpoint-versioning) (with a few small exceptions),
we follow this versioning approach in modules as well.
We structure endpoints and their versions like the following;
@ -192,7 +192,7 @@ Then, in the subsequent version module, embed the version and specification link
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3sync
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3sync
}
```

View file

@ -5,7 +5,7 @@
pub mod v1 {
//! `/v1/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/application-service-api/#put_matrixappv1transactionstxnid
//! [spec]: https://spec.matrix.org/latest/application-service-api/#put_matrixappv1transactionstxnid
#[cfg(any(feature = "unstable-msc2409", feature = "unstable-msc3202"))]
use std::collections::BTreeMap;

View file

@ -3,7 +3,7 @@
//! (De)serializable types for the [Matrix Application Service API][appservice-api].
//! These types can be shared by application service and server code.
//!
//! [appservice-api]: https://spec.matrix.org/v1.4/application-service-api/
//! [appservice-api]: https://spec.matrix.org/latest/application-service-api/
#![warn(missing_docs)]
@ -15,7 +15,7 @@ pub mod thirdparty;
/// A namespace defined by an application service.
///
/// Used for [appservice registration](https://spec.matrix.org/v1.4/application-service-api/#registration).
/// Used for [appservice registration](https://spec.matrix.org/latest/application-service-api/#registration).
#[derive(Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
pub struct Namespace {
@ -35,7 +35,7 @@ impl Namespace {
/// Namespaces defined by an application service.
///
/// Used for [appservice registration](https://spec.matrix.org/v1.4/application-service-api/#registration).
/// Used for [appservice registration](https://spec.matrix.org/latest/application-service-api/#registration).
#[derive(Clone, Debug, Default, Serialize, Deserialize)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
pub struct Namespaces {
@ -65,7 +65,7 @@ impl Namespaces {
/// To create an instance of this type, first create a `RegistrationInit` and convert it via
/// `Registration::from` / `.into()`.
///
/// Used for [appservice registration](https://spec.matrix.org/v1.4/application-service-api/#registration).
/// Used for [appservice registration](https://spec.matrix.org/latest/application-service-api/#registration).
#[derive(Clone, Debug, Serialize, Deserialize)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
pub struct Registration {
@ -103,7 +103,7 @@ pub struct 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](https://spec.matrix.org/v1.4/application-service-api/#registration).
/// Used for [appservice registration](https://spec.matrix.org/latest/application-service-api/#registration).
#[derive(Debug)]
#[allow(clippy::exhaustive_structs)]
pub struct RegistrationInit {

View file

@ -5,7 +5,7 @@
pub mod v1 {
//! `/v1/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1roomsroomalias
//! [spec]: https://spec.matrix.org/latest/application-service-api/#get_matrixappv1roomsroomalias
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v1 {
//! `/v1/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1usersuserid
//! [spec]: https://spec.matrix.org/latest/application-service-api/#get_matrixappv1usersuserid
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v1 {
//! `/v1/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1thirdpartylocationprotocol
//! [spec]: https://spec.matrix.org/latest/application-service-api/#get_matrixappv1thirdpartylocationprotocol
use std::collections::BTreeMap;

View file

@ -5,7 +5,7 @@
pub mod v1 {
//! `/v1/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1thirdpartylocation
//! [spec]: https://spec.matrix.org/latest/application-service-api/#get_matrixappv1thirdpartylocation
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v1 {
//! `/v1/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1thirdpartyprotocolprotocol
//! [spec]: https://spec.matrix.org/latest/application-service-api/#get_matrixappv1thirdpartyprotocolprotocol
use ruma_common::{
api::{request, response, Metadata},

View file

@ -6,7 +6,7 @@
pub mod v1 {
//! `/v1/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1thirdpartyuserprotocol
//! [spec]: https://spec.matrix.org/latest/application-service-api/#get_matrixappv1thirdpartyuserprotocol
use std::collections::BTreeMap;

View file

@ -5,7 +5,7 @@
pub mod v1 {
//! `/v1/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/application-service-api/#get_matrixappv1thirdpartyuser
//! [spec]: https://spec.matrix.org/latest/application-service-api/#get_matrixappv1thirdpartyuser
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3account3pidadd
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3account3pidadd
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3account3pidbind
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3account3pidbind
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3accountpassword
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3accountpassword
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v1 {
//! `/v1/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv1registermloginregistration_tokenvalidity
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv1registermloginregistration_tokenvalidity
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3accountdeactivate
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3accountdeactivate
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3account3piddelete
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3account3piddelete
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3account3pid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3account3pid
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3registeravailable
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3registeravailable
use ruma_common::{
api::{request, response, Metadata},

View file

@ -7,7 +7,7 @@ use serde::{Deserialize, Serialize};
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3register
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3register
use std::time::Duration;
@ -85,13 +85,13 @@ pub mod v3 {
/// Appservices can [bypass the registration flows][admin] entirely by providing their
/// token in the header and setting this login `type` to `m.login.application_service`.
///
/// [admin]: https://spec.matrix.org/v1.4/application-service-api/#server-admin-style-permissions
/// [admin]: https://spec.matrix.org/latest/application-service-api/#server-admin-style-permissions
#[serde(rename = "type", skip_serializing_if = "Option::is_none")]
pub login_type: Option<LoginType>,
/// If set to `true`, the client supports [refresh tokens].
///
/// [refresh tokens]: https://spec.matrix.org/v1.4/client-server-api/#refreshing-access-tokens
/// [refresh tokens]: https://spec.matrix.org/latest/client-server-api/#refreshing-access-tokens
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")]
pub refresh_token: bool,
}
@ -124,7 +124,7 @@ pub mod v3 {
///
/// Omitted if the request's `inhibit_login` was set to `true`.
///
/// [refresh token]: https://spec.matrix.org/v1.4/client-server-api/#refreshing-access-tokens
/// [refresh token]: https://spec.matrix.org/latest/client-server-api/#refreshing-access-tokens
/// [`refresh_token`]: crate::session::refresh_token
#[serde(skip_serializing_if = "Option::is_none")]
pub refresh_token: Option<String>,

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3account3pidemailrequesttoken
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3account3pidemailrequesttoken
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3account3pidmsisdnrequesttoken
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3account3pidmsisdnrequesttoken
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3useruseridopenidrequest_token
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3useruseridopenidrequest_token
use std::time::Duration;

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3accountpasswordemailrequesttoken
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3accountpasswordemailrequesttoken
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3accountpasswordmsisdnrequesttoken
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3accountpasswordmsisdnrequesttoken
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3registeremailrequesttoken
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3registeremailrequesttoken
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3registermsisdnrequesttoken
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3registermsisdnrequesttoken
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3account3pidunbind
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3account3pidunbind
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3accountwhoami
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3accountwhoami
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3directoryroomroomalias
//! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3directoryroomroomalias
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3directoryroomroomalias
//! [spec]: https://spec.matrix.org/latest/client-server-api/#delete_matrixclientv3directoryroomroomalias
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3directoryroomroomalias
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3directoryroomroomalias
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/application-service-api/#put_matrixclientv3directorylistappservicenetworkidroomid
//! [spec]: https://spec.matrix.org/latest/application-service-api/#put_matrixclientv3directorylistappservicenetworkidroomid
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3room_keyskeys
//! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3room_keyskeys
use std::collections::BTreeMap;

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3room_keyskeysroomid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3room_keyskeysroomid
use std::collections::BTreeMap;

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3room_keyskeysroomidsessionid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3room_keyskeysroomidsessionid
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3room_keysversion
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3room_keysversion
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3room_keyskeys
//! [spec]: https://spec.matrix.org/latest/client-server-api/#delete_matrixclientv3room_keyskeys
//!
//! This deletes keys from a backup version, but not the version itself.

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3room_keyskeysroomid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#delete_matrixclientv3room_keyskeysroomid
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3room_keyskeysroomidsessionid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#delete_matrixclientv3room_keyskeysroomidsessionid
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3room_keysversionversion
//! [spec]: https://spec.matrix.org/latest/client-server-api/#delete_matrixclientv3room_keysversionversion
//!
//! This deletes a backup version and its room keys.

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3room_keysversionversion
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3room_keysversionversion
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3room_keyskeys
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3room_keyskeys
use std::collections::BTreeMap;

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3room_keyskeysroomid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3room_keyskeysroomid
use std::collections::BTreeMap;

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3room_keyskeysroomidsessionid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3room_keyskeysroomidsessionid
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3room_keysversion
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3room_keysversion
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3room_keysversionversion
//! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3room_keysversionversion
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3useruseridaccount_datatype
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3useruseridaccount_datatype
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3useruseridroomsroomidaccount_datatype
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3useruseridroomsroomidaccount_datatype
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3useruseridaccount_datatype
//! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3useruseridaccount_datatype
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3useruseridroomsroomidaccount_datatype
//! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3useruseridroomsroomidaccount_datatype
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3roomsroomidcontexteventid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3roomsroomidcontexteventid
use js_int::{uint, UInt};
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#delete_matrixclientv3devicesdeviceid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#delete_matrixclientv3devicesdeviceid
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3delete_devices
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3delete_devices
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3devicesdeviceid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3devicesdeviceid
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3devices
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3devices
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3devicesdeviceid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3devicesdeviceid
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3publicrooms
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3publicrooms
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3publicrooms
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3publicrooms
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3directorylistroomroomid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3directorylistroomroomid
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3directorylistroomroomid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3directorylistroomroomid
use ruma_common::{
api::{request, response, Metadata},

View file

@ -1,6 +1,6 @@
//! `GET /.well-known/matrix/client` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#getwell-knownmatrixclient
//! [spec]: https://spec.matrix.org/latest/client-server-api/#getwell-knownmatrixclient
//!
//! Get discovery information about the domain.

View file

@ -3,7 +3,7 @@
//! Get information about the server's supported feature set and other relevant capabilities
//! ([spec]).
//!
//! [spec]: https://spec.matrix.org/unstable/client-server-api/#capabilities-negotiation
//! [spec]: https://spec.matrix.org/latest/client-server-api/#capabilities-negotiation
use std::{borrow::Cow, collections::BTreeMap};

View file

@ -1,6 +1,6 @@
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3capabilities
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3capabilities
use ruma_common::{
api::{request, response, Metadata},

View file

@ -2,7 +2,7 @@
//!
//! Get the versions of the client-server API supported by this homeserver.
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientversions
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientversions
use std::collections::BTreeMap;

View file

@ -35,7 +35,7 @@ pub enum ErrorKind {
///
/// For more information, see [the spec].
///
/// [the spec]: https://spec.matrix.org/v1.4/client-server-api/#soft-logout
/// [the spec]: https://spec.matrix.org/latest/client-server-api/#soft-logout
soft_logout: bool,
},

View file

@ -98,7 +98,7 @@ pub struct RoomEventFilter {
///
/// Only applies to the [`sync_events`] endpoint.
///
/// [per-thread notification counts]: https://spec.matrix.org/v1.4/client-server-api/#receiving-notifications
/// [per-thread notification counts]: https://spec.matrix.org/latest/client-server-api/#receiving-notifications
/// [`sync_events`]: crate::sync::sync_events
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")]
pub unread_thread_notifications: bool,

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3useruseridfilter
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3useruseridfilter
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3useruseridfilterfilterid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3useruseridfilterfilterid
use ruma_common::{
api::{request, response, Metadata},

View file

@ -3,7 +3,7 @@ use serde::{ser::SerializeStruct as _, Deserialize, Serialize, Serializer};
/// Specifies options for [lazy-loading membership events][lazy-loading] on
/// supported endpoints
///
/// [lazy-loading]: https://spec.matrix.org/v1.4/client-server-api/#lazy-loading-room-members
/// [lazy-loading]: https://spec.matrix.org/latest/client-server-api/#lazy-loading-room-members
#[derive(Clone, Copy, Debug, Default, Eq, PartialEq, Deserialize)]
#[serde(from = "LazyLoadJsonRepr")]
#[allow(clippy::exhaustive_enums)]

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keysclaim
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3keysclaim
use std::{collections::BTreeMap, time::Duration};

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3keyschanges
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3keyschanges
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keysquery
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3keysquery
use std::{collections::BTreeMap, time::Duration};

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keysupload
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3keysupload
use std::collections::BTreeMap;

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keyssignaturesupload
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3keyssignaturesupload
use std::collections::BTreeMap;

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3keysdevice_signingupload
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3keysdevice_signingupload
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3knockroomidoralias
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3knockroomidoralias
use ruma_common::{
api::{request, response, Metadata},

View file

@ -3,7 +3,7 @@
//! (De)serializable types for the [Matrix Client-Server API][client-api].
//! These types can be shared by client and server code.
//!
//! [client-api]: https://spec.matrix.org/v1.4/client-server-api/
//! [client-api]: https://spec.matrix.org/latest/client-server-api/
#![cfg(any(feature = "client", feature = "server"))]
#![cfg_attr(docsrs, feature(doc_auto_cfg))]

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixmediav3upload
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixmediav3upload
use http::header::CONTENT_TYPE;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixmediav3downloadservernamemediaid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixmediav3downloadservernamemediaid
use http::header::{CONTENT_DISPOSITION, CONTENT_TYPE};
#[cfg(feature = "unstable-msc2246")]

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixmediav3downloadservernamemediaidfilename
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixmediav3downloadservernamemediaidfilename
use http::header::{CONTENT_DISPOSITION, CONTENT_TYPE};
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixmediav3thumbnailservernamemediaid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixmediav3thumbnailservernamemediaid
use http::header::CONTENT_TYPE;
use js_int::UInt;

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixmediav3config
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixmediav3config
use js_int::UInt;
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixmediav3preview_url
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixmediav3preview_url
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidban
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3roomsroomidban
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidforget
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3roomsroomidforget
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3roomsroomidmembers
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3roomsroomidmembers
use ruma_common::{
api::{request, response, Metadata},

View file

@ -9,8 +9,8 @@ pub mod v3 {
//! [by their Matrix identifier][spec-mxid], and one to invite a user
//! [by their third party identifier][spec-3pid].
//!
//! [spec-mxid]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidinvite
//! [spec-3pid]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidinvite-1
//! [spec-mxid]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3roomsroomidinvite
//! [spec-3pid]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3roomsroomidinvite-1
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidjoin
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3roomsroomidjoin
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3joinroomidoralias
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3joinroomidoralias
use ruma_common::{
api::{request, response, Metadata},

View file

@ -6,7 +6,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3roomsroomidjoined_members
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3roomsroomidjoined_members
use std::collections::BTreeMap;

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3joined_rooms
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3joined_rooms
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidkick
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3roomsroomidkick
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidleave
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3roomsroomidleave
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#post_matrixclientv3roomsroomidunban
//! [spec]: https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3roomsroomidunban
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3roomsroomidmessages
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3roomsroomidmessages
use js_int::{uint, UInt};
use ruma_common::{

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3roomsroomidsendeventtypetxnid
//! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3roomsroomidsendeventtypetxnid
use ruma_common::{
api::{request, response, Metadata},
@ -45,7 +45,7 @@ pub mod v3 {
///
/// It will be used by the server to ensure idempotency of requests.
///
/// [access token is refreshed]: https://spec.matrix.org/v1.4/client-server-api/#refreshing-access-tokens
/// [access token is refreshed]: https://spec.matrix.org/latest/client-server-api/#refreshing-access-tokens
#[ruma_api(path)]
pub txn_id: OwnedTransactionId,
@ -59,7 +59,7 @@ pub mod v3 {
///
/// Note that this does not change the position of the event in the timeline.
///
/// [timestamp massaging]: https://spec.matrix.org/v1.4/application-service-api/#timestamp-massaging
/// [timestamp massaging]: https://spec.matrix.org/latest/application-service-api/#timestamp-massaging
#[ruma_api(query)]
#[serde(skip_serializing_if = "Option::is_none", rename = "ts")]
pub timestamp: Option<MilliSecondsSinceUnixEpoch>,

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3presenceuseridstatus
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3presenceuseridstatus
use std::time::Duration;

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#put_matrixclientv3presenceuseridstatus
//! [spec]: https://spec.matrix.org/latest/client-server-api/#put_matrixclientv3presenceuseridstatus
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3profileuseridavatar_url
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3profileuseridavatar_url
use ruma_common::{
api::{request, response, Metadata},

View file

@ -5,7 +5,7 @@
pub mod v3 {
//! `/v3/` ([spec])
//!
//! [spec]: https://spec.matrix.org/v1.4/client-server-api/#get_matrixclientv3profileuseriddisplayname
//! [spec]: https://spec.matrix.org/latest/client-server-api/#get_matrixclientv3profileuseriddisplayname
use ruma_common::{
api::{request, response, Metadata},

Some files were not shown because too many files have changed in this diff Show more