pub struct InstructionSchemaNode<T: InstructionDecoderCollection> {
pub ix_type: T::InstructionType,
pub name: String,
pub inner_instructions: Vec<SchemaNode<T>>,
}
Expand description
Represents an instruction node within a schema, containing the instruction type, name, and optional nested instructions for further validation.
Fields§
§ix_type: T::InstructionType
The type of the instruction, as defined by the associated collection.
name: String
A unique name identifier for the instruction node within the schema.
inner_instructions: Vec<SchemaNode<T>>
A vector of nested schema nodes for matching nested instructions.
Trait Implementations§
Source§impl<T: Clone + InstructionDecoderCollection> Clone for InstructionSchemaNode<T>where
T::InstructionType: Clone,
impl<T: Clone + InstructionDecoderCollection> Clone for InstructionSchemaNode<T>where
T::InstructionType: Clone,
Source§fn clone(&self) -> InstructionSchemaNode<T>
fn clone(&self) -> InstructionSchemaNode<T>
Returns a copy 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<T: Debug + InstructionDecoderCollection> Debug for InstructionSchemaNode<T>where
T::InstructionType: Debug,
impl<T: Debug + InstructionDecoderCollection> Debug for InstructionSchemaNode<T>where
T::InstructionType: Debug,
Auto Trait Implementations§
impl<T> Freeze for InstructionSchemaNode<T>
impl<T> RefUnwindSafe for InstructionSchemaNode<T>
impl<T> Send for InstructionSchemaNode<T>
impl<T> Sync for InstructionSchemaNode<T>
impl<T> Unpin for InstructionSchemaNode<T>
impl<T> UnwindSafe for InstructionSchemaNode<T>
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more