pub struct AccountFieldSchema {
pub name: &'static str,
pub kind: &'static str,
pub mutable: bool,
pub signer: bool,
pub layout: Option<&'static str>,
pub policy: Option<&'static str>,
pub seeds: &'static [&'static str],
pub optional: bool,
}Expand description
Schema metadata for a single account field in a context.
Fields§
§name: &'static strField name in the struct.
kind: &'static strAccount kind (e.g. “HopperAccount”, “Signer”, “ProgramRef”).
mutable: boolWhether the account is writable.
signer: boolWhether the account must be a signer.
layout: Option<&'static str>Layout name bound via layout = T, if any.
policy: Option<&'static str>Policy pack name bound via policy = P, if any.
seeds: &'static [&'static str]PDA seed expressions (as string representations).
optional: boolWhether the account is optional.
Trait Implementations§
Source§impl Clone for AccountFieldSchema
impl Clone for AccountFieldSchema
Source§fn clone(&self) -> AccountFieldSchema
fn clone(&self) -> AccountFieldSchema
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 AccountFieldSchema
Auto Trait Implementations§
impl Freeze for AccountFieldSchema
impl RefUnwindSafe for AccountFieldSchema
impl Send for AccountFieldSchema
impl Sync for AccountFieldSchema
impl Unpin for AccountFieldSchema
impl UnsafeUnpin for AccountFieldSchema
impl UnwindSafe for AccountFieldSchema
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