pub struct TransactionSchema<T: InstructionDecoderCollection> {
pub root: Vec<SchemaNode<T>>,
}Fields§
§root: Vec<SchemaNode<T>>Implementations§
Source§impl<T: InstructionDecoderCollection> TransactionSchema<T>
impl<T: InstructionDecoderCollection> TransactionSchema<T>
pub fn match_schema<U>(
&self,
instructions: &[ParsedInstruction<T>],
) -> Option<U>where
U: DeserializeOwned,
pub fn match_nodes( &self, instructions: &[ParsedInstruction<T>], ) -> Option<HashMap<String, (T, Vec<AccountMeta>)>>
Trait Implementations§
Source§impl<T: Clone + InstructionDecoderCollection> Clone for TransactionSchema<T>
impl<T: Clone + InstructionDecoderCollection> Clone for TransactionSchema<T>
Source§fn clone(&self) -> TransactionSchema<T>
fn clone(&self) -> TransactionSchema<T>
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 moreAuto Trait Implementations§
impl<T> Freeze for TransactionSchema<T>
impl<T> RefUnwindSafe for TransactionSchema<T>
impl<T> Send for TransactionSchema<T>
impl<T> Sync for TransactionSchema<T>
impl<T> Unpin for TransactionSchema<T>
impl<T> UnwindSafe for TransactionSchema<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