pub struct CloseEmptyPosition {
pub program: StoreProgram,
pub payer: StringPubkey,
pub position: StringPubkey,
}Expand description
Builder for the close_empty_position instruction.
Fields§
§program: StoreProgramProgram.
payer: StringPubkeyPayer (a.k.a. owner).
position: StringPubkeyPosition to close.
Implementations§
Trait Implementations§
Source§impl Clone for CloseEmptyPosition
impl Clone for CloseEmptyPosition
Source§fn clone(&self) -> CloseEmptyPosition
fn clone(&self) -> CloseEmptyPosition
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 CloseEmptyPosition
impl Debug for CloseEmptyPosition
Source§impl<'de> Deserialize<'de> for CloseEmptyPosition
impl<'de> Deserialize<'de> for CloseEmptyPosition
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 CloseEmptyPositionwhere
Self: DeserializeOwned,
impl FromWasmAbi for CloseEmptyPositionwhere
Self: DeserializeOwned,
Source§impl IntoAtomicGroup for CloseEmptyPosition
impl IntoAtomicGroup for CloseEmptyPosition
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 CloseEmptyPositionwhere
Self: DeserializeOwned,
impl OptionFromWasmAbi for CloseEmptyPositionwhere
Self: DeserializeOwned,
Source§impl RefFromWasmAbi for CloseEmptyPositionwhere
Self: DeserializeOwned,
impl RefFromWasmAbi for CloseEmptyPositionwhere
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<CloseEmptyPosition>
type Anchor = SelfOwner<CloseEmptyPosition>
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 Serialize for CloseEmptyPosition
impl Serialize for CloseEmptyPosition
Source§impl Tsify for CloseEmptyPosition
impl Tsify for CloseEmptyPosition
const DECL: &'static str = "/**\n * Builder for the `close_empty_position` instruction.\n */\nexport interface CloseEmptyPosition {\n /**\n * Program.\n */\n program?: StoreProgram;\n /**\n * Payer (a.k.a. owner).\n */\n payer: StringPubkey;\n /**\n * Position to close.\n */\n position: StringPubkey;\n}"
const SERIALIZATION_CONFIG: SerializationConfig
Source§impl VectorFromWasmAbi for CloseEmptyPositionwhere
Self: DeserializeOwned,
impl VectorFromWasmAbi for CloseEmptyPositionwhere
Self: DeserializeOwned,
type Abi = <JsType as VectorFromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[Self]>
Source§impl WasmDescribeVector for CloseEmptyPosition
impl WasmDescribeVector for CloseEmptyPosition
Auto Trait Implementations§
impl Freeze for CloseEmptyPosition
impl RefUnwindSafe for CloseEmptyPosition
impl Send for CloseEmptyPosition
impl Sync for CloseEmptyPosition
impl Unpin for CloseEmptyPosition
impl UnwindSafe for CloseEmptyPosition
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