#[non_exhaustive]pub struct HlActionResponse {
pub status: String,
pub response: Option<Value>,
pub extra: HashMap<String, Value>,
}Expand description
Generic response from an exchange action (cancel, transfer, etc.).
The Hyperliquid exchange returns {"status": "ok", "response": {...}} for
successful actions. This struct captures the top-level status and preserves
the inner response payload and any extra fields.
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.status: StringTop-level status string (typically "ok").
response: Option<Value>Inner response payload, if present.
extra: HashMap<String, Value>Any additional top-level fields returned by the API.
Implementations§
Trait Implementations§
Source§impl Clone for HlActionResponse
impl Clone for HlActionResponse
Source§fn clone(&self) -> HlActionResponse
fn clone(&self) -> HlActionResponse
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HlActionResponse
impl Debug for HlActionResponse
Source§impl<'de> Deserialize<'de> for HlActionResponse
impl<'de> Deserialize<'de> for HlActionResponse
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
Source§impl PartialEq for HlActionResponse
impl PartialEq for HlActionResponse
Source§impl Serialize for HlActionResponse
impl Serialize for HlActionResponse
impl StructuralPartialEq for HlActionResponse
Auto Trait Implementations§
impl Freeze for HlActionResponse
impl RefUnwindSafe for HlActionResponse
impl Send for HlActionResponse
impl Sync for HlActionResponse
impl Unpin for HlActionResponse
impl UnsafeUnpin for HlActionResponse
impl UnwindSafe for HlActionResponse
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