push: Fix ordering of docs
This commit is contained in:
parent
7565588be7
commit
c44e0b5e5a
@ -1,8 +1,8 @@
|
|||||||
use ruma_macros::StringEnum;
|
|
||||||
|
|
||||||
///! Constructors for [predefined push rules].
|
///! Constructors for [predefined push rules].
|
||||||
///!
|
///!
|
||||||
///! [predefined push rules]: https://spec.matrix.org/latest/client-server-api/#predefined-rules
|
///! [predefined push rules]: https://spec.matrix.org/latest/client-server-api/#predefined-rules
|
||||||
|
use ruma_macros::StringEnum;
|
||||||
|
|
||||||
use super::{
|
use super::{
|
||||||
Action::*, ConditionalPushRule, PatternedPushRule, PushCondition::*, RoomMemberCountIs,
|
Action::*, ConditionalPushRule, PatternedPushRule, PushCondition::*, RoomMemberCountIs,
|
||||||
Ruleset, Tweak,
|
Ruleset, Tweak,
|
||||||
@ -12,12 +12,12 @@ use crate::{PrivOwnedStr, UserId};
|
|||||||
impl Ruleset {
|
impl Ruleset {
|
||||||
/// The list of all [predefined push rules].
|
/// The list of all [predefined push rules].
|
||||||
///
|
///
|
||||||
/// [predefined push rules]: https://spec.matrix.org/latest/client-server-api/#predefined-rules
|
|
||||||
///
|
|
||||||
/// # Parameters
|
/// # Parameters
|
||||||
///
|
///
|
||||||
/// - `user_id`: the user for which to generate the default rules. Some rules depend on the
|
/// - `user_id`: the user for which to generate the default rules. Some rules depend on the
|
||||||
/// user's ID (for instance those to send notifications when they are mentioned).
|
/// user's ID (for instance those to send notifications when they are mentioned).
|
||||||
|
///
|
||||||
|
/// [predefined push rules]: https://spec.matrix.org/latest/client-server-api/#predefined-rules
|
||||||
pub fn server_default(user_id: &UserId) -> Self {
|
pub fn server_default(user_id: &UserId) -> Self {
|
||||||
Self {
|
Self {
|
||||||
content: [PatternedPushRule::contains_user_name(user_id)].into(),
|
content: [PatternedPushRule::contains_user_name(user_id)].into(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user