mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-04-10 11:13:48 +02:00
18 lines
381 B
Rust
18 lines
381 B
Rust
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Debug, Clone, Serialize, Deserialize)]
|
|
#[serde(rename_all = "snake_case", tag = "type")]
|
|
pub enum UpdateSource {
|
|
Background,
|
|
Import,
|
|
Plugin,
|
|
Sync,
|
|
Window { label: String },
|
|
}
|
|
|
|
impl UpdateSource {
|
|
pub fn from_window_label(label: impl Into<String>) -> Self {
|
|
Self::Window { label: label.into() }
|
|
}
|
|
}
|