feat: impl serde for TypeAliasAnnotation
This commit is contained in:
parent
2b5ed95df5
commit
d55b7844f0
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue