#[non_exhaustive]pub struct VenueTransfer {
pub venue: VenueId,
pub kind: TransferKind,
pub account: Option<Address>,
pub recipient: Option<Address>,
pub chain_id: Option<u64>,
pub amount: Amount,
pub cost: Amount,
pub source_dex: Option<String>,
pub id: Option<String>,
pub signed_at: DateTime<Utc>,
}Expand description
A venue’s own transfer out of an account, read from what its owner signs.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.venue: VenueIdThe venue.
kind: TransferKindA withdrawal or a send.
account: Option<Address>The account paying, when the payload names it: a Hyperliquid transfer’s is its signer.
recipient: Option<Address>Who receives, when the payload names it: a Hyperliquid withdrawal pays its signer’s own HyperEVM address.
chain_id: Option<u64>A withdrawal’s chain id.
amount: AmountBase units that arrive.
cost: AmountBase units that leave the account: Aster adds its fee.
source_dex: Option<String>A Hyperliquid transfer’s sourceDex: "" perps, spot a unified account, xyz a
standard account’s trade.xyz.
id: Option<String>An Aster send’s clientTranId: Aster moves nothing more for a repeated one.
signed_at: DateTime<Utc>When it was signed, from the venue’s own unit.
Trait Implementations§
Source§impl Clone for VenueTransfer
impl Clone for VenueTransfer
Source§impl Debug for VenueTransfer
impl Debug for VenueTransfer
impl Eq for VenueTransfer
Source§impl PartialEq for VenueTransfer
impl PartialEq for VenueTransfer
impl StructuralPartialEq for VenueTransfer
Auto Trait Implementations§
impl Forget for VenueTransfer
impl Freeze for VenueTransfer
impl Move for VenueTransfer
impl RefUnwindSafe for VenueTransfer
impl Send for VenueTransfer
impl Sync for VenueTransfer
impl Unpin for VenueTransfer
impl UnsafeUnpin for VenueTransferwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
NonZeroI32Inner: UnsafeUnpin,
Utc: UnsafeUnpin,
impl UnwindSafe for VenueTransfer
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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