pub enum ClientOutbound {
ConnectQuoteProvider {
wallet: String,
timestamp: String,
nonce: u64,
signature: String,
},
GatewayResumeQuoteProvider {
wallet: String,
timestamp: String,
nonce: u64,
signature: String,
},
IndicativeQuoteUpdate {
quotes: Vec<IndicativeQuote>,
},
ScopedIndicativeQuoteUpdate {
scope: ScopeId,
quotes: Vec<IndicativeQuote>,
},
RfqResponse {
rfq_id: String,
action: String,
legs: Option<Vec<QpResponseLeg>>,
net_premium: Option<String>,
valid_for_ms: Option<u64>,
signature: Option<String>,
nonce: Option<u64>,
},
}Expand description
Messages sent by a QP client.
Variants§
ConnectQuoteProvider
First frame for direct QP connections.
GatewayResumeQuoteProvider
First frame for gateway-managed reconnects.
Public QP clients must not send it directly.
IndicativeQuoteUpdate
Periodic indicative quote update: a full snapshot for the wallet. Instruments this wallet previously quoted but omits here are evicted server-side.
Fields
quotes: Vec<IndicativeQuote>ScopedIndicativeQuoteUpdate
Scoped indicative quote update: a full snapshot of one
client-defined scope (see ScopeId). Eviction-by-omission is
limited to instruments this wallet previously published under the
same scope; other scopes are untouched. Empty quotes explicitly
clears the scope.
Clients must only send this after the server advertised
CAP_SCOPED_INDICATIVE in QpServerMessage::Authenticated;
older servers reject the unknown message type.
RfqResponse
Firm quote response to an RFQ.
Trait Implementations§
Source§impl Clone for QpClientMessage
impl Clone for QpClientMessage
Source§fn clone(&self) -> QpClientMessage
fn clone(&self) -> QpClientMessage
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QpClientMessage
impl Debug for QpClientMessage
Source§impl<'de> Deserialize<'de> for QpClientMessage
impl<'de> Deserialize<'de> for QpClientMessage
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<QpClientMessage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<QpClientMessage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
impl Eq for QpClientMessage
Source§impl PartialEq for QpClientMessage
impl PartialEq for QpClientMessage
Source§impl Serialize for QpClientMessage
impl Serialize for QpClientMessage
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl StructuralPartialEq for QpClientMessage
Auto Trait Implementations§
impl Forget for QpClientMessage
impl Freeze for QpClientMessage
impl Move for QpClientMessage
impl RefUnwindSafe for QpClientMessage
impl Send for QpClientMessage
impl Sync for QpClientMessage
impl Unpin for QpClientMessage
impl UnsafeUnpin for QpClientMessage
impl UnwindSafe for QpClientMessage
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
impl<'de, T> BorrowedRpcObject<'de> for T
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<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
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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> ⓘ
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> ⓘ
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