pub enum OptionalAccountStrategy {
Omitted,
ProgramId,
}Expand description
How an absent optional account is represented when serialising an instruction.
Variants§
Omitted
The account slot is left out of the instruction entirely. Subsequent accounts shift up.
ProgramId
The account slot is filled with the program ID as a placeholder, preserving positional indices.
Trait Implementations§
Source§impl Clone for OptionalAccountStrategy
impl Clone for OptionalAccountStrategy
Source§fn clone(&self) -> OptionalAccountStrategy
fn clone(&self) -> OptionalAccountStrategy
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 OptionalAccountStrategy
Source§impl Debug for OptionalAccountStrategy
impl Debug for OptionalAccountStrategy
Source§impl Default for OptionalAccountStrategy
impl Default for OptionalAccountStrategy
Source§impl<'de> Deserialize<'de> for OptionalAccountStrategy
impl<'de> Deserialize<'de> for OptionalAccountStrategy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OptionalAccountStrategy
Source§impl PartialEq for OptionalAccountStrategy
impl PartialEq for OptionalAccountStrategy
Source§impl Serialize for OptionalAccountStrategy
impl Serialize for OptionalAccountStrategy
impl StructuralPartialEq for OptionalAccountStrategy
Auto Trait Implementations§
impl Freeze for OptionalAccountStrategy
impl RefUnwindSafe for OptionalAccountStrategy
impl Send for OptionalAccountStrategy
impl Sync for OptionalAccountStrategy
impl Unpin for OptionalAccountStrategy
impl UnsafeUnpin for OptionalAccountStrategy
impl UnwindSafe for OptionalAccountStrategy
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.