docs: Don't use since with the deprecated attribute

This commit is contained in:
Kévin Commaille 2023-02-14 21:45:35 +01:00 committed by Kévin Commaille
parent 729d003c88
commit fc7cc74789
6 changed files with 9 additions and 6 deletions

View File

@ -43,7 +43,7 @@ pub mod v3 {
/// Optional identity server hostname and access token.
#[serde(flatten, skip_serializing_if = "Option::is_none")]
#[deprecated(since = "0.6.0")]
#[deprecated = "Since Matrix Client-Server API r0.6.0."]
pub identity_server_info: Option<IdentityServerInfo>,
}

View File

@ -46,7 +46,7 @@ pub mod v3 {
/// Optional identity server hostname and access token.
#[serde(flatten, skip_serializing_if = "Option::is_none")]
#[deprecated(since = "0.6.0")]
#[deprecated = "Since Matrix Client-Server API r0.6.0."]
pub identity_server_info: Option<IdentityServerInfo>,
}

View File

@ -43,7 +43,7 @@ pub mod v3 {
/// Optional identity server hostname and access token.
#[serde(flatten, skip_serializing_if = "Option::is_none")]
#[deprecated(since = "0.6.0")]
#[deprecated = "Since Matrix Client-Server API r0.6.0."]
pub identity_server_info: Option<IdentityServerInfo>,
}

View File

@ -43,7 +43,7 @@ pub mod v3 {
/// Optional identity server hostname and access token.
#[serde(flatten, skip_serializing_if = "Option::is_none")]
#[deprecated(since = "0.6.0")]
#[deprecated = "Since Matrix Client-Server API r0.6.0."]
pub identity_server_info: Option<IdentityServerInfo>,
}

View File

@ -46,7 +46,7 @@ pub mod v3 {
/// Optional identity server hostname and access token.
#[serde(flatten, skip_serializing_if = "Option::is_none")]
#[deprecated(since = "0.6.0")]
#[deprecated = "Since Matrix Client-Server API r0.6.0."]
pub identity_server_info: Option<IdentityServerInfo>,
}

View File

@ -68,7 +68,10 @@ pub mod v3 {
/// The hostname of the homeserver on which the account has been registered.
#[serde(skip_serializing_if = "Option::is_none")]
#[deprecated = "Clients should instead use the `user_id.server_name()` method if they require it."]
#[deprecated = "\
Since Matrix Client-Server API r0.4.0. Clients should instead use the \
`user_id.server_name()` method if they require it.\
"]
pub home_server: Option<OwnedServerName>,
/// ID of the logged-in device.