mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-12 14:40:42 +08:00
lib: Change patch filter default to 'open'
This commit is contained in:
+11
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user