codama-nodes 0.10.0

Node specifications and helpers for the Codama standard
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{ConstantPdaSeedValue, TypeNode};
use codama_nodes_derive::node;

#[node]
pub struct ConstantPdaSeedNode {
    // Children.
    pub r#type: Box<TypeNode>,
    pub value: Box<ConstantPdaSeedValue>,
}

impl From<ConstantPdaSeedNode> for crate::Node {
    fn from(val: ConstantPdaSeedNode) -> Self {
        crate::Node::PdaSeed(val.into())
    }
}