pub struct ContextSchema {
pub name: &'static str,
pub fields: &'static [AccountFieldSchema],
pub policy_names: &'static [&'static str],
pub receipts_expected: bool,
pub mutation_classes: &'static [&'static str],
}Expand description
Schema metadata for an entire instruction context.
Fields§
§name: &'static strContext struct name (e.g. “Deposit”).
fields: &'static [AccountFieldSchema]Per-account field schemas.
policy_names: &'static [&'static str]Policy pack names used by this context.
receipts_expected: boolWhether receipts are expected from this instruction.
mutation_classes: &'static [&'static str]Mutation class names (e.g. “Financial”, “InPlace”).
Trait Implementations§
Source§impl Clone for ContextSchema
impl Clone for ContextSchema
Source§fn clone(&self) -> ContextSchema
fn clone(&self) -> ContextSchema
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 moreimpl Copy for ContextSchema
Auto Trait Implementations§
impl Freeze for ContextSchema
impl RefUnwindSafe for ContextSchema
impl Send for ContextSchema
impl Sync for ContextSchema
impl Unpin for ContextSchema
impl UnsafeUnpin for ContextSchema
impl UnwindSafe for ContextSchema
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