pub struct TakeIntent {
pub from: VenueId,
pub to: VenueId,
pub amount_in: Amount,
pub min_out: Amount,
pub max_parts: MaxParts,
pub max_fee_bps: Option<Bps>,
pub wallet_funding: bool,
pub delivery: Delivery,
pub payer: Address,
pub payer_account: Option<u64>,
pub at_once: bool,
pub route: bool,
}Expand description
The caller’s terms a take is checked against.
Fields§
§from: VenueIdThe venue paying.
to: VenueIdThe venue receiving.
amount_in: AmountThe most paid, in from base units.
min_out: AmountThe least received, in to base units.
max_parts: MaxPartsThe most fills.
max_fee_bps: Option<Bps>None: no fee accepted.
wallet_funding: boolPaid from the escrow-chain wallet rather than the venue account.
delivery: DeliveryWhere the take delivers.
payer: AddressThe session address: the payer and signer.
payer_account: Option<u64>The payer’s linked Lighter account index, for a take paid from Lighter.
at_once: boolSigned at once with a transfer’s withdrawal: a route’s pay window, and signable only until the at-once cutoff leaves time to sign.
route: boolA grouped route’s second take, signed before the first delivers: a route’s pay window.
Trait Implementations§
Source§impl Clone for TakeIntent
impl Clone for TakeIntent
Source§impl Debug for TakeIntent
impl Debug for TakeIntent
impl Eq for TakeIntent
Source§impl PartialEq for TakeIntent
impl PartialEq for TakeIntent
impl StructuralPartialEq for TakeIntent
Auto Trait Implementations§
impl Forget for TakeIntent
impl Freeze for TakeIntent
impl Move for TakeIntent
impl RefUnwindSafe for TakeIntent
impl Send for TakeIntentwhere
RawVecInner: Send,
impl Sync for TakeIntentwhere
RawVecInner: Sync,
impl Unpin for TakeIntent
impl UnsafeUnpin for TakeIntent
impl UnwindSafe for TakeIntentwhere
RawVecInner: UnwindSafe,
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