Rename filter keys?
This commit is contained in:
parent
e946a5f5e4
commit
ec43c4a47b
1 changed files with 7 additions and 7 deletions
|
@ -7,16 +7,16 @@ use serde::{Deserialize, Serialize};
|
|||
|
||||
#[derive(Clone, Debug, Default, PartialEq, Eq, Serialize, Deserialize)]
|
||||
pub struct ThreadFilter {
|
||||
/// Whether to only include threads the user is watching.
|
||||
/// Whether to include muted threads.
|
||||
/// Muted rooms implicitly mute all threads inside said room.
|
||||
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")]
|
||||
pub only_watching: bool,
|
||||
pub muted: bool,
|
||||
|
||||
/// Include thread roots for threads the user has already sent read receipts for.
|
||||
/// Muted rooms implicitly ignore all threads inside said room.
|
||||
/// Whether to remove unwatched threads.
|
||||
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")]
|
||||
pub include_ignored: bool,
|
||||
pub watching: bool,
|
||||
|
||||
/// Include thread roots for threads the user has ignored. Ignored used when `only_watching` is set.
|
||||
/// Whether to remove threads with no unread messages.
|
||||
#[serde(default, skip_serializing_if = "ruma_common::serde::is_default")]
|
||||
pub include_read: bool,
|
||||
pub unread: bool,
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue