remove stupid skip_serializing_if on push rulesets
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
5a826d31a3
commit
a204cb56db
@ -55,27 +55,27 @@ pub use self::{
|
|||||||
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
|
||||||
pub struct Ruleset {
|
pub struct Ruleset {
|
||||||
/// These rules configure behavior for (unencrypted) messages that match certain patterns.
|
/// These rules configure behavior for (unencrypted) messages that match certain patterns.
|
||||||
#[serde(default, skip_serializing_if = "IndexSet::is_empty")]
|
#[serde(default)]
|
||||||
pub content: IndexSet<PatternedPushRule>,
|
pub content: IndexSet<PatternedPushRule>,
|
||||||
|
|
||||||
/// These user-configured rules are given the highest priority.
|
/// These user-configured rules are given the highest priority.
|
||||||
///
|
///
|
||||||
/// This field is named `override_` instead of `override` because the latter is a reserved
|
/// This field is named `override_` instead of `override` because the latter is a reserved
|
||||||
/// keyword in Rust.
|
/// keyword in Rust.
|
||||||
#[serde(rename = "override", default, skip_serializing_if = "IndexSet::is_empty")]
|
#[serde(rename = "override", default)]
|
||||||
pub override_: IndexSet<ConditionalPushRule>,
|
pub override_: IndexSet<ConditionalPushRule>,
|
||||||
|
|
||||||
/// These rules change the behavior of all messages for a given room.
|
/// These rules change the behavior of all messages for a given room.
|
||||||
#[serde(default, skip_serializing_if = "IndexSet::is_empty")]
|
#[serde(default)]
|
||||||
pub room: IndexSet<SimplePushRule<OwnedRoomId>>,
|
pub room: IndexSet<SimplePushRule<OwnedRoomId>>,
|
||||||
|
|
||||||
/// These rules configure notification behavior for messages from a specific Matrix user ID.
|
/// These rules configure notification behavior for messages from a specific Matrix user ID.
|
||||||
#[serde(default, skip_serializing_if = "IndexSet::is_empty")]
|
#[serde(default)]
|
||||||
pub sender: IndexSet<SimplePushRule<OwnedUserId>>,
|
pub sender: IndexSet<SimplePushRule<OwnedUserId>>,
|
||||||
|
|
||||||
/// These rules are identical to override rules, but have a lower priority than `content`,
|
/// These rules are identical to override rules, but have a lower priority than `content`,
|
||||||
/// `room` and `sender` rules.
|
/// `room` and `sender` rules.
|
||||||
#[serde(default, skip_serializing_if = "IndexSet::is_empty")]
|
#[serde(default)]
|
||||||
pub underride: IndexSet<ConditionalPushRule>,
|
pub underride: IndexSet<ConditionalPushRule>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user