mirror of
https://forge.katzen.cafe/katzen-cafe/iowo.git
synced 2025-09-24 23:41:30 +02:00

Semi-broken as atm the CLI just does nothing except printing the parsed IR, instead of actually executing it.
19 lines
420 B
Rust
19 lines
420 B
Rust
use serde::{Deserialize, Serialize};
|
|
use std::path::PathBuf;
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
|
pub struct Write {
|
|
pub target: TargetType,
|
|
pub format: TargetFormat,
|
|
}
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
|
pub enum TargetType {
|
|
File(PathBuf),
|
|
}
|
|
|
|
#[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize)]
|
|
pub enum TargetFormat {
|
|
Jpeg,
|
|
Png,
|
|
}
|