pub struct CreateShiftOperation<'a, 'info, T>where
T: ZeroCopy + Owner,{ /* private fields */ }Expand description
Operation for creating a shift.
Implementations§
Source§impl<'a, 'info, T> CreateShiftOperation<'a, 'info, T>where
T: ZeroCopy + Owner,
impl<'a, 'info, T> CreateShiftOperation<'a, 'info, T>where
T: ZeroCopy + Owner,
Sourcepub fn builder() -> CreateShiftOperationBuilder<'a, 'info, T, ((), (), (), (), (), (), (), (), (), (), ())>
pub fn builder() -> CreateShiftOperationBuilder<'a, 'info, T, ((), (), (), (), (), (), (), (), (), (), ())>
Create a builder for building CreateShiftOperation.
On the builder, call .store(...), .owner(...), .receiver(...), .shift(...), .from_market(...), .from_market_token_account(...), .to_market(...), .to_market_token_account(...), .nonce(...), .bump(...), .params(...) to set the values of the fields.
Finally, call .build() to create the instance of CreateShiftOperation.
Auto Trait Implementations§
impl<'a, 'info, T> Freeze for CreateShiftOperation<'a, 'info, T>
impl<'a, 'info, T> !RefUnwindSafe for CreateShiftOperation<'a, 'info, T>
impl<'a, 'info, T> !Send for CreateShiftOperation<'a, 'info, T>
impl<'a, 'info, T> !Sync for CreateShiftOperation<'a, 'info, T>
impl<'a, 'info, T> Unpin for CreateShiftOperation<'a, 'info, T>
impl<'a, 'info, T> !UnwindSafe for CreateShiftOperation<'a, 'info, T>
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> 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