struct deamon

This commit is contained in:
2026-03-05 23:25:37 +01:00
parent 70de0e9508
commit d125ba38b2
3 changed files with 53 additions and 17 deletions

View File

@ -0,0 +1,30 @@
use std::time::SystemTime;
pub struct ClipboardEntry {
pub content: ClipboardData,
pub timestamp: SystemTime,
}
pub enum ClipboardData {
Text(String),
Image(Vec<u8>), // png storage
}
impl ClipboardData {
fn is_text(&self) -> bool {
match self {
ClipboardData::Text(_) => true,
ClipboardData::Image(_) => false,
}
}
fn is_image(&self) -> bool {
!self.is_text()
}
}
impl ClipboardEntry {
fn new() -> ClipboardData {
unimplemented!()
}
}