Akshay
adeb545062
Add push rule for .m.rule.reaction
2021-01-21 19:51:32 +01:00
Ana Gelez
483fe8f940
Run cargo fmt
2020-11-27 20:53:51 +01:00
Ana Gelez
0e6d3f17c6
Seal the RulesetMember trait
...
+ use maplit instead of custom macro
+ fix two little issues in the documentation
2020-11-27 20:52:06 +01:00
Ana Gelez
65ef5f21e5
Use Self constructors when possible
2020-11-27 20:52:06 +01:00
Ana Gelez
0e0491c02b
Add a "add" method on Ruleset
...
- Add wrapper types for each kind of push rule
- Add a trait to add a push rule to a rule set
2020-11-27 20:50:10 +01:00
Ana Gelez
e8622ee809
Use a BTreeSet instead of a Vec to make push rule IDs unique
...
- Introduce a new macro to easily derive Ord, PartialOrd, Eq and PartialEq
for a PushRule-like type (these traits are required by BTreeSet)
- Introduce a new macro to easily build a BTreeSet
2020-11-27 20:46:58 +01:00
Jonas Platte
e7f55ea2c6
Rewrap comments
2020-11-27 18:22:18 +01:00
Gelez
4c41bfd1f3
Add constructors for default push rules
2020-11-24 22:37:09 +01:00