Skip to main content

codama_nodes/generated/contextual_value_nodes/
pda_seed_value_node.rs

1use crate::{CamelCaseString, HasName, PdaSeedValueValue};
2use codama_nodes_derive::node;
3
4#[node]
5pub struct PdaSeedValueNode {
6    // Data.
7    pub name: CamelCaseString,
8
9    // Children.
10    pub value: Box<PdaSeedValueValue>,
11}
12
13impl From<PdaSeedValueNode> for crate::Node {
14    fn from(val: PdaSeedValueNode) -> Self {
15        crate::Node::ContextualValue(val.into())
16    }
17}
18
19impl HasName for PdaSeedValueNode {
20    fn name(&self) -> &CamelCaseString {
21        &self.name
22    }
23}