feat: impl serde for TypeAliasAnnotation

This commit is contained in:
rvcas 2024-03-08 17:33:08 -05:00 committed by Lucas
parent 2b5ed95df5
commit d55b7844f0
1 changed files with 2 additions and 2 deletions

View File

@ -23,14 +23,14 @@ mod pattern;
mod pipe; mod pipe;
pub mod pretty; pub mod pretty;
#[derive(Debug, Clone)] #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub struct TypeAliasAnnotation { pub struct TypeAliasAnnotation {
pub alias: String, pub alias: String,
pub parameters: Vec<String>, pub parameters: Vec<String>,
pub annotation: Annotation, pub annotation: Annotation,
} }
#[derive(Debug, Clone, PartialEq, serde::Serialize, serde::Deserialize)] #[derive(Debug, Clone, serde::Serialize, serde::Deserialize)]
pub enum Type { pub enum Type {
/// A nominal (named) type such as `Int`, `Float`, or a programmer defined /// A nominal (named) type such as `Int`, `Float`, or a programmer defined
/// custom type such as `Person`. The type can take other types as /// custom type such as `Person`. The type can take other types as