Add missing commas
This commit is contained in:
parent
46c7e3f811
commit
dc842f028f
@ -241,7 +241,7 @@ use
|
|||||||
```rust
|
```rust
|
||||||
ruma_api! {
|
ruma_api! {
|
||||||
request: {
|
request: {
|
||||||
my_field: MyStruct<'a>
|
my_field: MyStruct<'a>,
|
||||||
}
|
}
|
||||||
// ...
|
// ...
|
||||||
}
|
}
|
||||||
|
@ -227,7 +227,7 @@ impl Request {
|
|||||||
const METADATA: #ruma_api::Metadata = self::METADATA;
|
const METADATA: #ruma_api::Metadata = self::METADATA;
|
||||||
|
|
||||||
fn try_from_http_request<T: ::std::convert::AsRef<[::std::primitive::u8]>>(
|
fn try_from_http_request<T: ::std::convert::AsRef<[::std::primitive::u8]>>(
|
||||||
request: #http::Request<T>
|
request: #http::Request<T>,
|
||||||
) -> ::std::result::Result<Self, #ruma_api::error::FromHttpRequestError> {
|
) -> ::std::result::Result<Self, #ruma_api::error::FromHttpRequestError> {
|
||||||
if request.method() != #http::Method::#method {
|
if request.method() != #http::Method::#method {
|
||||||
return Err(#ruma_api::error::FromHttpRequestError::MethodMismatch {
|
return Err(#ruma_api::error::FromHttpRequestError::MethodMismatch {
|
||||||
|
@ -49,7 +49,7 @@ ruma_api! {
|
|||||||
feature = "compat",
|
feature = "compat",
|
||||||
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
||||||
)]
|
)]
|
||||||
pub submit_url: Option<String>
|
pub submit_url: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
error: crate::Error
|
error: crate::Error
|
||||||
|
@ -52,7 +52,7 @@ ruma_api! {
|
|||||||
feature = "compat",
|
feature = "compat",
|
||||||
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
||||||
)]
|
)]
|
||||||
pub submit_url: Option<String>
|
pub submit_url: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
error: crate::Error
|
error: crate::Error
|
||||||
|
@ -49,7 +49,7 @@ ruma_api! {
|
|||||||
feature = "compat",
|
feature = "compat",
|
||||||
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
||||||
)]
|
)]
|
||||||
pub submit_url: Option<String>
|
pub submit_url: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
error: crate::Error
|
error: crate::Error
|
||||||
|
@ -45,7 +45,7 @@ ruma_api! {
|
|||||||
feature = "compat",
|
feature = "compat",
|
||||||
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
||||||
)]
|
)]
|
||||||
pub submit_url: Option<String>
|
pub submit_url: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
error: crate::Error
|
error: crate::Error
|
||||||
|
@ -49,7 +49,7 @@ ruma_api! {
|
|||||||
feature = "compat",
|
feature = "compat",
|
||||||
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
||||||
)]
|
)]
|
||||||
pub submit_url: Option<String>
|
pub submit_url: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
error: crate::Error
|
error: crate::Error
|
||||||
|
@ -52,7 +52,7 @@ ruma_api! {
|
|||||||
feature = "compat",
|
feature = "compat",
|
||||||
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
serde(default, deserialize_with = "ruma_serde::empty_string_as_none")
|
||||||
)]
|
)]
|
||||||
pub submit_url: Option<String>
|
pub submit_url: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
error: crate::Error
|
error: crate::Error
|
||||||
|
@ -31,7 +31,7 @@ ruma_api! {
|
|||||||
response: {
|
response: {
|
||||||
/// For each key algorithm, the number of unclaimed one-time keys of that
|
/// For each key algorithm, the number of unclaimed one-time keys of that
|
||||||
/// type currently held on the server for this device.
|
/// type currently held on the server for this device.
|
||||||
pub one_time_key_counts: BTreeMap<DeviceKeyAlgorithm, UInt>
|
pub one_time_key_counts: BTreeMap<DeviceKeyAlgorithm, UInt>,
|
||||||
}
|
}
|
||||||
|
|
||||||
error: crate::Error
|
error: crate::Error
|
||||||
|
@ -42,7 +42,7 @@ ruma_api! {
|
|||||||
|
|
||||||
response: {
|
response: {
|
||||||
/// A list of member events.
|
/// A list of member events.
|
||||||
pub chunk: Vec<Raw<MemberEvent>>
|
pub chunk: Vec<Raw<MemberEvent>>,
|
||||||
}
|
}
|
||||||
|
|
||||||
error: crate::Error
|
error: crate::Error
|
||||||
|
@ -34,7 +34,7 @@ ruma_api! {
|
|||||||
/// where the notification had the 'highlight' tweak set.
|
/// where the notification had the 'highlight' tweak set.
|
||||||
#[ruma_api(query)]
|
#[ruma_api(query)]
|
||||||
#[serde(skip_serializing_if = "Option::is_none")]
|
#[serde(skip_serializing_if = "Option::is_none")]
|
||||||
pub only: Option<&'a str>
|
pub only: Option<&'a str>,
|
||||||
}
|
}
|
||||||
|
|
||||||
response: {
|
response: {
|
||||||
|
@ -31,7 +31,7 @@ ruma_api! {
|
|||||||
|
|
||||||
response: {
|
response: {
|
||||||
/// The actions to perform for this rule.
|
/// The actions to perform for this rule.
|
||||||
pub actions: Vec<Action>
|
pub actions: Vec<Action>,
|
||||||
}
|
}
|
||||||
|
|
||||||
error: crate::Error
|
error: crate::Error
|
||||||
|
@ -23,7 +23,7 @@ ruma_api! {
|
|||||||
|
|
||||||
/// Experimental features supported by the server.
|
/// Experimental features supported by the server.
|
||||||
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
|
#[serde(default, skip_serializing_if = "BTreeMap::is_empty")]
|
||||||
pub unstable_features: BTreeMap<String, bool>
|
pub unstable_features: BTreeMap<String, bool>,
|
||||||
}
|
}
|
||||||
|
|
||||||
error: crate::Error
|
error: crate::Error
|
||||||
|
@ -39,7 +39,7 @@ ruma_api! {
|
|||||||
#[derive(Default)]
|
#[derive(Default)]
|
||||||
response: {
|
response: {
|
||||||
/// The missing PDUs.
|
/// The missing PDUs.
|
||||||
pub events: Vec<Raw<Pdu>>
|
pub events: Vec<Raw<Pdu>>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -22,7 +22,7 @@ ruma_api! {
|
|||||||
/// The policies the server offers.
|
/// The policies the server offers.
|
||||||
///
|
///
|
||||||
/// Mapped from arbitrary ID (unused in this version of the specification) to a Policy Object.
|
/// Mapped from arbitrary ID (unused in this version of the specification) to a Policy Object.
|
||||||
pub policies: BTreeMap<String, Policies>
|
pub policies: BTreeMap<String, Policies>,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user