Struct jet_margin::AdapterResult
source · [−]pub struct AdapterResult {
pub position_changes: Vec<(Pubkey, Vec<PositionChange>)>,
}
Fields
position_changes: Vec<(Pubkey, Vec<PositionChange>)>
keyed by token mint, same as position
Trait Implementations
sourceimpl BorshDeserialize for AdapterResultwhere
Vec<(Pubkey, Vec<PositionChange>)>: BorshDeserialize,
impl BorshDeserialize for AdapterResultwhere
Vec<(Pubkey, Vec<PositionChange>)>: BorshDeserialize,
sourcefn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes. Read more
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
sourceimpl BorshSerialize for AdapterResultwhere
Vec<(Pubkey, Vec<PositionChange>)>: BorshSerialize,
impl BorshSerialize for AdapterResultwhere
Vec<(Pubkey, Vec<PositionChange>)>: BorshSerialize,
sourceimpl Clone for AdapterResult
impl Clone for AdapterResult
sourcefn clone(&self) -> AdapterResult
fn clone(&self) -> AdapterResult
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Default for AdapterResult
impl Default for AdapterResult
sourcefn default() -> AdapterResult
fn default() -> AdapterResult
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for AdapterResult
impl Send for AdapterResult
impl Sync for AdapterResult
impl Unpin for AdapterResult
impl UnwindSafe for AdapterResult
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more