Skip to main content

codama_nodes/generated/contextual_value_nodes/
argument_value_node.rs

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