pub struct AccountResolverDescriptor {
pub account: &'static str,
pub kind: AccountResolverKind,
pub seeds: &'static [&'static str],
pub expected_address: &'static str,
pub expected_owner: &'static str,
pub payer: &'static str,
pub layout_ref: &'static str,
pub optional: bool,
}Expand description
Static resolver metadata for one instruction account.
Fields§
§account: &'static strAccount field name.
kind: AccountResolverKindResolver strategy.
seeds: &'static [&'static str]PDA seed expressions or stable seed labels.
expected_address: &'static strExpected address, when known.
expected_owner: &'static strExpected owner, when known.
payer: &'static strPayer account used by init/realloc flows, when applicable.
layout_ref: &'static strLayout reference for typed account resolvers.
optional: boolWhether the account is optional.
Trait Implementations§
Source§impl Clone for AccountResolverDescriptor
impl Clone for AccountResolverDescriptor
Source§fn clone(&self) -> AccountResolverDescriptor
fn clone(&self) -> AccountResolverDescriptor
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 moreSource§impl Debug for AccountResolverDescriptor
impl Debug for AccountResolverDescriptor
impl Copy for AccountResolverDescriptor
Auto Trait Implementations§
impl Freeze for AccountResolverDescriptor
impl RefUnwindSafe for AccountResolverDescriptor
impl Send for AccountResolverDescriptor
impl Sync for AccountResolverDescriptor
impl Unpin for AccountResolverDescriptor
impl UnsafeUnpin for AccountResolverDescriptor
impl UnwindSafe for AccountResolverDescriptor
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