Fix some links in documentation
This commit is contained in:
parent
c322bd4d1e
commit
abc18fae39
@ -29,7 +29,7 @@ ruma_api! {
|
|||||||
///
|
///
|
||||||
/// See [MDN] for the syntax.
|
/// See [MDN] for the syntax.
|
||||||
///
|
///
|
||||||
/// https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language#Syntax
|
/// [MDN]: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept-Language#Syntax
|
||||||
#[ruma_api(header = ACCEPT_LANGUAGE)]
|
#[ruma_api(header = ACCEPT_LANGUAGE)]
|
||||||
pub language: Option<String>,
|
pub language: Option<String>,
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@ use serde_json::value::RawValue as RawJsonValue;
|
|||||||
/// This represents the different actions that should be taken when a rule is matched, and
|
/// This represents the different actions that should be taken when a rule is matched, and
|
||||||
/// controls how notifications are delivered to the client.
|
/// controls how notifications are delivered to the client.
|
||||||
///
|
///
|
||||||
/// See https://matrix.org/docs/spec/client_server/r0.6.0#actions for details.
|
/// See <https://matrix.org/docs/spec/client_server/r0.6.0#actions> for details.
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||||
pub enum Action {
|
pub enum Action {
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
//! adds types to parse the relationship of an event if any exists.
|
//! adds types to parse the relationship of an event if any exists.
|
||||||
//!
|
//!
|
||||||
//! MSC for all the relates_to types except replies:
|
//! MSC for all the relates_to types except replies:
|
||||||
//! https://github.com/matrix-org/matrix-doc/pull/2674
|
//! <https://github.com/matrix-org/matrix-doc/pull/2674>
|
||||||
|
|
||||||
use ruma_identifiers::EventId;
|
use ruma_identifiers::EventId;
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
/// Declares an item with a doc attribute computed by some macro expression.
|
/// Declares an item with a doc attribute computed by some macro expression.
|
||||||
/// This allows documentation to be dynamically generated based on input.
|
/// This allows documentation to be dynamically generated based on input.
|
||||||
/// Necessary to work around https://github.com/rust-lang/rust/issues/52607.
|
/// Necessary to work around <https://github.com/rust-lang/rust/issues/52607>.
|
||||||
macro_rules! doc_concat {
|
macro_rules! doc_concat {
|
||||||
( $( #[doc = $doc:expr] $( $thing:tt )* )* ) => ( $( #[doc = $doc] $( $thing )* )* );
|
( $( #[doc = $doc:expr] $( $thing:tt )* )* ) => ( $( #[doc = $doc] $( $thing )* )* );
|
||||||
}
|
}
|
||||||
|
@ -59,7 +59,7 @@ pub fn is_true(b: &bool) -> bool {
|
|||||||
///
|
///
|
||||||
/// To be used like this:
|
/// To be used like this:
|
||||||
/// `#[serde(deserialize_with = "empty_string_as_none")]`
|
/// `#[serde(deserialize_with = "empty_string_as_none")]`
|
||||||
/// Relevant serde issue: https://github.com/serde-rs/serde/issues/1425
|
/// Relevant serde issue: <https://github.com/serde-rs/serde/issues/1425>
|
||||||
pub fn empty_string_as_none<'de, D, T>(de: D) -> Result<Option<T>, D::Error>
|
pub fn empty_string_as_none<'de, D, T>(de: D) -> Result<Option<T>, D::Error>
|
||||||
where
|
where
|
||||||
D: serde::Deserializer<'de>,
|
D: serde::Deserializer<'de>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user