mirror of
https://seed.radicle.dev/rad:z39mP9rQAaGmERfUMPULfPUi473tY.git
synced 2026-11-21 18:40:46 +08:00
24 lines
589 B
Rust
24 lines
589 B
Rust
use radicle::patch::PatchId;
|
|
use serde::Serialize;
|
|
|
|
/// The application's mode. It tells the application
|
|
/// which widgets to render and which output to produce.
|
|
///
|
|
/// Depends on CLI arguments given by the user.
|
|
#[derive(Clone, Default, Debug, Eq, PartialEq)]
|
|
pub enum Mode {
|
|
#[default]
|
|
Operation,
|
|
Id,
|
|
}
|
|
|
|
/// The selected patch operation returned by the operation
|
|
/// selection widget.
|
|
#[derive(Clone, Debug, Eq, PartialEq, Serialize)]
|
|
pub enum PatchOperation {
|
|
Checkout { id: PatchId },
|
|
Diff { id: PatchId },
|
|
Show { id: PatchId },
|
|
_Review { id: PatchId },
|
|
}
|