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
16
17
use crate::CamelCaseString;
use codama_nodes_derive::node;

#[node]
#[derive(Default)]
pub struct AccountFieldValueNode {
    // Data.
    pub account: CamelCaseString,
    #[serde(skip_serializing_if = "crate::is_default")]
    pub path: Option<CamelCaseString>,
}

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