mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-21 18:40:46 +08:00
20 lines
475 B
Rust
20 lines
475 B
Rust
use serde::Serialize;
|
|
|
|
use radicle::{identity::RepoId, node::notifications::NotificationId};
|
|
|
|
#[derive(Clone, Default, Debug, PartialEq, Eq)]
|
|
pub enum RepositoryMode {
|
|
#[default]
|
|
Contextual,
|
|
All,
|
|
ByRepo((RepoId, Option<String>)),
|
|
}
|
|
|
|
/// The selected issue operation returned by the operation
|
|
/// selection widget.
|
|
#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
|
|
pub enum InboxOperation {
|
|
Show { id: NotificationId },
|
|
Clear { id: NotificationId },
|
|
}
|