pub struct PluginNode {
pub name: CamelCaseString,
pub payload: Option<Value>,
}Fields§
§name: CamelCaseString§payload: Option<Value>Implementations§
Source§impl PluginNode
impl PluginNode
pub fn new<T: Into<CamelCaseString>>(name: T) -> Self
pub fn with_payload<T: Into<CamelCaseString>>(name: T, payload: Value) -> Self
Trait Implementations§
Source§impl Clone for PluginNode
impl Clone for PluginNode
Source§fn clone(&self) -> PluginNode
fn clone(&self) -> PluginNode
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 PluginNode
impl Debug for PluginNode
Source§impl Default for PluginNode
impl Default for PluginNode
Source§fn default() -> PluginNode
fn default() -> PluginNode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PluginNode
impl<'de> Deserialize<'de> for PluginNode
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<PluginNode> for Node
impl From<PluginNode> for Node
Source§fn from(value: PluginNode) -> Self
fn from(value: PluginNode) -> Self
Converts to this type from the input type.
Source§impl HasName for PluginNode
impl HasName for PluginNode
fn name(&self) -> &CamelCaseString
Source§impl NodeTrait for PluginNode
impl NodeTrait for PluginNode
const KIND: &'static str = "pluginNode"
fn to_json(&self) -> CodamaResult<String>
fn to_json_pretty(&self) -> CodamaResult<String>
fn from_json(json: &str) -> CodamaResult<Self>
Source§impl PartialEq for PluginNode
impl PartialEq for PluginNode
Source§impl Serialize for PluginNode
impl Serialize for PluginNode
impl StructuralPartialEq for PluginNode
Auto Trait Implementations§
impl Freeze for PluginNode
impl RefUnwindSafe for PluginNode
impl Send for PluginNode
impl Sync for PluginNode
impl Unpin for PluginNode
impl UnsafeUnpin for PluginNode
impl UnwindSafe for PluginNode
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