pub enum AccountResolverKind {
Provided,
Pda,
Constant,
Optional,
Program,
Sysvar,
}Expand description
How an instruction account is resolved before invocation.
The descriptor is intentionally small and string-backed so manifests can carry resolver plans without depending on a proc-macro registry or an allocator. Tooling can project this into richer client builders, while no-std programs can keep it as static metadata.
Variants§
Provided
Caller must provide the account address directly.
Pda
Account is derived from PDA seeds.
Constant
Account is pinned to a known constant address.
Optional
Account may be omitted by callers that do not need the path.
Program
Account is a program id entry.
Sysvar
Account is a sysvar entry.
Implementations§
Trait Implementations§
Source§impl Clone for AccountResolverKind
impl Clone for AccountResolverKind
Source§fn clone(&self) -> AccountResolverKind
fn clone(&self) -> AccountResolverKind
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 AccountResolverKind
impl Debug for AccountResolverKind
Source§impl Display for AccountResolverKind
impl Display for AccountResolverKind
Source§impl PartialEq for AccountResolverKind
impl PartialEq for AccountResolverKind
Source§fn eq(&self, other: &AccountResolverKind) -> bool
fn eq(&self, other: &AccountResolverKind) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for AccountResolverKind
impl Eq for AccountResolverKind
impl StructuralPartialEq for AccountResolverKind
Auto Trait Implementations§
impl Freeze for AccountResolverKind
impl RefUnwindSafe for AccountResolverKind
impl Send for AccountResolverKind
impl Sync for AccountResolverKind
impl Unpin for AccountResolverKind
impl UnsafeUnpin for AccountResolverKind
impl UnwindSafe for AccountResolverKind
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