pub struct InstructionAccountLinkNode {
pub name: CamelCaseString,
pub instruction: Option<InstructionLinkNode>,
}Fields§
§name: CamelCaseString§instruction: Option<InstructionLinkNode>Implementations§
Source§impl InstructionAccountLinkNode
impl InstructionAccountLinkNode
pub fn new<T>(name: T) -> Selfwhere
T: Into<CamelCaseString>,
pub fn new_from_instruction<T>(
name: T,
instruction: InstructionLinkNode,
) -> Selfwhere
T: Into<CamelCaseString>,
Trait Implementations§
Source§impl Clone for InstructionAccountLinkNode
impl Clone for InstructionAccountLinkNode
Source§fn clone(&self) -> InstructionAccountLinkNode
fn clone(&self) -> InstructionAccountLinkNode
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 InstructionAccountLinkNode
impl Debug for InstructionAccountLinkNode
Source§impl<'de> Deserialize<'de> for InstructionAccountLinkNode
impl<'de> Deserialize<'de> for InstructionAccountLinkNode
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 InstructionAccountLinkNode
impl From<&str> for InstructionAccountLinkNode
Source§impl From<InstructionAccountLinkNode> for LinkNode
impl From<InstructionAccountLinkNode> for LinkNode
Source§fn from(value: InstructionAccountLinkNode) -> Self
fn from(value: InstructionAccountLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<InstructionAccountLinkNode> for Node
impl From<InstructionAccountLinkNode> for Node
Source§fn from(val: InstructionAccountLinkNode) -> Self
fn from(val: InstructionAccountLinkNode) -> Self
Converts to this type from the input type.
Source§impl From<String> for InstructionAccountLinkNode
impl From<String> for InstructionAccountLinkNode
Source§impl HasName for InstructionAccountLinkNode
impl HasName for InstructionAccountLinkNode
fn name(&self) -> &CamelCaseString
Source§impl NodeTrait for InstructionAccountLinkNode
impl NodeTrait for InstructionAccountLinkNode
const KIND: &'static str = "instructionAccountLinkNode"
fn to_json(&self) -> CodamaResult<String>
fn to_json_pretty(&self) -> CodamaResult<String>
fn from_json(json: &str) -> CodamaResult<Self>
impl StructuralPartialEq for InstructionAccountLinkNode
Auto Trait Implementations§
impl Freeze for InstructionAccountLinkNode
impl RefUnwindSafe for InstructionAccountLinkNode
impl Send for InstructionAccountLinkNode
impl Sync for InstructionAccountLinkNode
impl Unpin for InstructionAccountLinkNode
impl UnwindSafe for InstructionAccountLinkNode
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