federation-api: Rewrap doc comments
This commit is contained in:
parent
133056c524
commit
2b01a8211a
@ -105,8 +105,7 @@ impl<'a> Request<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Response {
|
impl Response {
|
||||||
/// Creates a new `Response` with an empty event,
|
/// Creates a new `Response` with an empty event, to indicate the event was accepted into the
|
||||||
/// to indicate the event was accepted into the
|
|
||||||
/// graph by the receiving homeserver.
|
/// graph by the receiving homeserver.
|
||||||
pub fn new(event: Empty) -> Self {
|
pub fn new(event: Empty) -> Self {
|
||||||
Self { event }
|
Self { event }
|
||||||
|
@ -104,8 +104,7 @@ impl<'a> Request<'a> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
impl Response {
|
impl Response {
|
||||||
/// Creates a new `Response` with an empty event,
|
/// Creates a new `Response` with an empty event, to indicate the event was accepted into the
|
||||||
/// to indicate the event was accepted into the
|
|
||||||
/// graph by the receiving homeserver.
|
/// graph by the receiving homeserver.
|
||||||
pub fn new(event: Empty) -> Self {
|
pub fn new(event: Empty) -> Self {
|
||||||
Self { event }
|
Self { event }
|
||||||
|
@ -29,15 +29,18 @@ ruma_api! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
response: {
|
response: {
|
||||||
/// The version of the room where the server is trying to leave. If not provided, the room version is assumed to be either "1" or "2".
|
/// The version of the room where the server is trying to leave. If not provided, the room
|
||||||
|
/// version is assumed to be either "1" or "2".
|
||||||
pub room_version: Option<RoomVersionId>,
|
pub room_version: Option<RoomVersionId>,
|
||||||
|
|
||||||
/// An unsigned template event. Note that events have a different format depending on the room version - check the room version specification for precise event formats.
|
/// An unsigned template event. Note that events have a different format depending on the
|
||||||
|
/// room version - check the room version specification for precise event formats.
|
||||||
pub event: EventTemplate,
|
pub event: EventTemplate,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// An unsigned template event. Note that events have a different format depending on the room version - check the room version specification for precise event formats.
|
/// An unsigned template event. Note that events have a different format depending on the room
|
||||||
|
/// version - check the room version specification for precise event formats.
|
||||||
#[derive(Clone, Debug, Serialize, Deserialize)]
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
||||||
pub struct EventTemplate {
|
pub struct EventTemplate {
|
||||||
/// The user ID of the leaving member.
|
/// The user ID of the leaving member.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user