pub struct PdaLinkNode {
pub name: CamelCaseString,
pub program: Option<ProgramLinkNode>,
}Fields§
§name: CamelCaseString§program: Option<ProgramLinkNode>Implementations§
Source§impl PdaLinkNode
impl PdaLinkNode
pub fn new<T>(name: T) -> Selfwhere
T: Into<CamelCaseString>,
pub fn new_from_program<T>(name: T, program: ProgramLinkNode) -> Selfwhere
T: Into<CamelCaseString>,
Trait Implementations§
Source§impl Clone for PdaLinkNode
impl Clone for PdaLinkNode
Source§fn clone(&self) -> PdaLinkNode
fn clone(&self) -> PdaLinkNode
Returns a duplicate of the value. Read more
1.0.0 · 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 PdaLinkNode
impl Debug for PdaLinkNode
Source§impl<'de> Deserialize<'de> for PdaLinkNode
impl<'de> Deserialize<'de> for PdaLinkNode
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<&str> for PdaLinkNode
impl From<&str> for PdaLinkNode
Source§impl From<PdaLinkNode> for LinkNode
impl From<PdaLinkNode> for LinkNode
Source§fn from(value: PdaLinkNode) -> Self
fn from(value: PdaLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<PdaLinkNode> for Node
impl From<PdaLinkNode> for Node
Source§fn from(val: PdaLinkNode) -> Self
fn from(val: PdaLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<PdaLinkNode> for PdaValue
impl From<PdaLinkNode> for PdaValue
Source§fn from(value: PdaLinkNode) -> Self
fn from(value: PdaLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<String> for PdaLinkNode
impl From<String> for PdaLinkNode
Source§impl HasName for PdaLinkNode
impl HasName for PdaLinkNode
fn name(&self) -> &CamelCaseString
Source§impl NodeTrait for PdaLinkNode
impl NodeTrait for PdaLinkNode
const KIND: &'static str = "pdaLinkNode"
fn to_json(&self) -> CodamaResult<String>
fn to_json_pretty(&self) -> CodamaResult<String>
fn from_json(json: &str) -> CodamaResult<Self>
Source§impl PartialEq for PdaLinkNode
impl PartialEq for PdaLinkNode
Source§impl Serialize for PdaLinkNode
impl Serialize for PdaLinkNode
impl StructuralPartialEq for PdaLinkNode
Auto Trait Implementations§
impl Freeze for PdaLinkNode
impl RefUnwindSafe for PdaLinkNode
impl Send for PdaLinkNode
impl Sync for PdaLinkNode
impl Unpin for PdaLinkNode
impl UnwindSafe for PdaLinkNode
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