pub struct SetShouldKeepPositionAccount {
pub program: StoreProgram,
pub payer: StringPubkey,
pub order: StringPubkey,
pub keep: bool,
}Expand description
Builder for the set_should_keep_position_account instruction.
Fields§
§program: StoreProgramProgram.
payer: StringPubkeyPayer (a.k.a. owner).
order: StringPubkeyOrder.
keep: boolWhether to keep position account.
Implementations§
Source§impl SetShouldKeepPositionAccount
impl SetShouldKeepPositionAccount
Sourcepub fn builder() -> SetShouldKeepPositionAccountBuilder<((), (), (), ())>
pub fn builder() -> SetShouldKeepPositionAccountBuilder<((), (), (), ())>
Create a builder for building SetShouldKeepPositionAccount.
On the builder, call .program(...)(optional), .payer(...), .order(...), .keep(...) to set the values of the fields.
Finally, call .build() to create the instance of SetShouldKeepPositionAccount.
Trait Implementations§
Source§impl Clone for SetShouldKeepPositionAccount
impl Clone for SetShouldKeepPositionAccount
Source§fn clone(&self) -> SetShouldKeepPositionAccount
fn clone(&self) -> SetShouldKeepPositionAccount
Returns a duplicate of the value. Read more
1.0.0 · 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 SetShouldKeepPositionAccount
impl Debug for SetShouldKeepPositionAccount
Source§impl<'de> Deserialize<'de> for SetShouldKeepPositionAccount
impl<'de> Deserialize<'de> for SetShouldKeepPositionAccount
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
Source§impl FromWasmAbi for SetShouldKeepPositionAccountwhere
Self: DeserializeOwned,
impl FromWasmAbi for SetShouldKeepPositionAccountwhere
Self: DeserializeOwned,
Source§impl IntoAtomicGroup for SetShouldKeepPositionAccount
impl IntoAtomicGroup for SetShouldKeepPositionAccount
Source§fn into_atomic_group(self, _hint: &Self::Hint) -> Result<AtomicGroup>
fn into_atomic_group(self, _hint: &Self::Hint) -> Result<AtomicGroup>
Convert into an
AtomicGroup.Source§fn into_atomic_group_with_rpc_client(
self,
client: &impl RpcClient,
) -> impl Future<Output = Result<AtomicGroup, Error>>
fn into_atomic_group_with_rpc_client( self, client: &impl RpcClient, ) -> impl Future<Output = Result<AtomicGroup, Error>>
Available on
client_traits only.Convert into an
AtomicGroup with RPC client.Source§impl OptionFromWasmAbi for SetShouldKeepPositionAccountwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for SetShouldKeepPositionAccountwhere
Self: DeserializeOwned,
Source§impl RefFromWasmAbi for SetShouldKeepPositionAccountwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for SetShouldKeepPositionAccountwhere
Self: DeserializeOwned,
Source§type Abi = <JsType as RefFromWasmAbi>::Abi
type Abi = <JsType as RefFromWasmAbi>::Abi
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = SelfOwner<SetShouldKeepPositionAccount>
type Anchor = SelfOwner<SetShouldKeepPositionAccount>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl Tsify for SetShouldKeepPositionAccount
impl Tsify for SetShouldKeepPositionAccount
const DECL: &'static str = "/**\n * Builder for the `set_should_keep_position_account` instruction.\n */\nexport interface SetShouldKeepPositionAccount {\n /**\n * Program.\n */\n program?: StoreProgram;\n /**\n * Payer (a.k.a. owner).\n */\n payer: StringPubkey;\n /**\n * Order.\n */\n order: StringPubkey;\n /**\n * Whether to keep position account.\n */\n keep: boolean;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
Source§impl VectorFromWasmAbi for SetShouldKeepPositionAccountwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for SetShouldKeepPositionAccountwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl WasmDescribeVector for SetShouldKeepPositionAccount
impl WasmDescribeVector for SetShouldKeepPositionAccount
Auto Trait Implementations§
impl Freeze for SetShouldKeepPositionAccount
impl RefUnwindSafe for SetShouldKeepPositionAccount
impl Send for SetShouldKeepPositionAccount
impl Sync for SetShouldKeepPositionAccount
impl Unpin for SetShouldKeepPositionAccount
impl UnwindSafe for SetShouldKeepPositionAccount
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more