mirror of
https://github.com/storytold/materialcraft.git
synced 2026-11-22 23:40:54 +01:00
10 lines
335 B
Rust
10 lines
335 B
Rust
use materialcraft_core::{FunctionNode, PatternNode};
|
|
use serde::{Deserialize, Serialize};
|
|
|
|
#[derive(Clone, Debug, Serialize, Deserialize)]
|
|
#[serde(tag = "kind", rename_all = "camelCase")]
|
|
pub enum EmbeddedClipboard {
|
|
Function { source: String, nodes: Vec<FunctionNode> },
|
|
Pattern { source: String, nodes: Vec<PatternNode> },
|
|
}
|