lib: Change patch filter default to 'open'

This commit is contained in:
Erik Kundt
2024-02-29 16:40:32 +01:00
parent 8f4b9922d0
commit bc8039d3cc
+11 -1
View File
@@ -31,13 +31,23 @@ impl Display for State {
}
}
#[derive(Clone, Default, Debug, Eq, PartialEq)]
#[derive(Clone, Debug, Eq, PartialEq)]
pub struct Filter {
state: Option<State>,
authored: bool,
authors: Vec<Did>,
}
impl Default for Filter {
fn default() -> Self {
Self {
state: Some(State::default()),
authored: false,
authors: vec![],
}
}
}
impl Filter {
pub fn with_state(mut self, state: Option<State>) -> Self {
self.state = state;