pub struct ConstantNode {
pub name: CamelCaseString,
pub docs: Docs,
pub type: Box<TypeNode>,
pub value: Box<ValueNode>,
}Fields§
§name: CamelCaseString§docs: Docs§type: Box<TypeNode>§value: Box<ValueNode>Implementations§
Trait Implementations§
Source§impl Clone for ConstantNode
impl Clone for ConstantNode
Source§fn clone(&self) -> ConstantNode
fn clone(&self) -> ConstantNode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ConstantNode
impl Debug for ConstantNode
Source§impl<'de> Deserialize<'de> for ConstantNode
impl<'de> Deserialize<'de> for ConstantNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<ConstantNode> for Node
impl From<ConstantNode> for Node
Source§fn from(value: ConstantNode) -> Self
fn from(value: ConstantNode) -> Self
Converts to this type from the input type.
Source§impl HasName for ConstantNode
impl HasName for ConstantNode
fn name(&self) -> &CamelCaseString
Source§impl NodeTrait for ConstantNode
impl NodeTrait for ConstantNode
const KIND: &'static str = "constantNode"
fn to_json(&self) -> CodamaResult<String>
fn to_json_pretty(&self) -> CodamaResult<String>
fn from_json(json: &str) -> CodamaResult<Self>
Source§impl PartialEq for ConstantNode
impl PartialEq for ConstantNode
Source§impl Serialize for ConstantNode
impl Serialize for ConstantNode
impl StructuralPartialEq for ConstantNode
Auto Trait Implementations§
impl Freeze for ConstantNode
impl RefUnwindSafe for ConstantNode
impl Send for ConstantNode
impl Sync for ConstantNode
impl Unpin for ConstantNode
impl UnsafeUnpin for ConstantNode
impl UnwindSafe for ConstantNode
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more