pub struct VaultPosition {Show 18 fields
pub vault: String,
pub position: String,
pub order_id: String,
pub role: VaultPositionRole,
pub market: String,
pub position_type: VaultPositionType,
pub strike: String,
pub product: VaultPositionProduct,
pub quantity: String,
pub net_premium: String,
pub counterparty: String,
pub funded_amount: Option<String>,
pub status: VaultPositionStatus,
pub is_otm: Option<bool>,
pub created_at: String,
pub acquired_at: String,
pub settled_at: Option<String>,
pub transaction_signature: Option<String>,
}Expand description
Public /api/v1/vaults/{pda}/positions row.
Fields§
§vault: String§position: String§order_id: String§role: VaultPositionRole§market: String§position_type: VaultPositionType§strike: StringThe lower strike for spreads.
product: VaultPositionProduct§quantity: String§counterparty: String§funded_amount: Option<String>§status: VaultPositionStatus§is_otm: Option<bool>§created_at: String§acquired_at: String§settled_at: Option<String>§transaction_signature: Option<String>Trait Implementations§
Source§impl Clone for VaultPosition
impl Clone for VaultPosition
Source§impl Debug for VaultPosition
impl Debug for VaultPosition
Source§impl<'de> Deserialize<'de> for VaultPosition
impl<'de> Deserialize<'de> for VaultPosition
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 VaultPosition
Source§impl PartialEq for VaultPosition
impl PartialEq for VaultPosition
Source§impl Serialize for VaultPosition
impl Serialize for VaultPosition
impl StructuralPartialEq for VaultPosition
Auto Trait Implementations§
impl Forget for VaultPosition
impl Freeze for VaultPosition
impl RefUnwindSafe for VaultPosition
impl Send for VaultPosition
impl Sync for VaultPosition
impl Unpin for VaultPosition
impl UnsafeUnpin for VaultPosition
impl UnwindSafe for VaultPosition
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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