1 2 3 4 5 6 7 8 9 10 11 12
use serde::Serialize;
use super::super::node_kind::NodeKind;
#[derive(Debug, Clone, Serialize)]
pub struct Literal(pub String);
impl From<Literal> for NodeKind {
fn from(v: Literal) -> Self {
NodeKind::Literal(v)
}
}