pub struct EmptyResponse {}
Expand description
Represents an empty JSON object response, e.g., {}
.
Useful for operations like DELETE that return a 200 OK with an empty body.
Trait Implementations§
Source§impl Clone for EmptyResponse
impl Clone for EmptyResponse
Source§fn clone(&self) -> EmptyResponse
fn clone(&self) -> EmptyResponse
Returns a copy 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 EmptyResponse
impl Debug for EmptyResponse
Source§impl<'de> Deserialize<'de> for EmptyResponse
impl<'de> Deserialize<'de> for EmptyResponse
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 EmptyResponse
impl PartialEq for EmptyResponse
impl Eq for EmptyResponse
impl StructuralPartialEq for EmptyResponse
Auto Trait Implementations§
impl Freeze for EmptyResponse
impl RefUnwindSafe for EmptyResponse
impl Send for EmptyResponse
impl Sync for EmptyResponse
impl Unpin for EmptyResponse
impl UnwindSafe for EmptyResponse
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.