pub struct Empty {}Expand description
An empty struct used as a placeholder for API responses where no additional data is returned.
This is commonly used in Bybit API responses for fields like ret_ext_info where the API may return an empty object ({}) to maintain a consistent response structure. For trading bots, this struct is typically ignored unless you need to verify the presence of an empty object for error handling or response validation.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Empty
impl<'de> Deserialize<'de> for Empty
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
Auto Trait Implementations§
impl Freeze for Empty
impl RefUnwindSafe for Empty
impl Send for Empty
impl Sync for Empty
impl Unpin for Empty
impl UnsafeUnpin for Empty
impl UnwindSafe for Empty
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