pub enum ResponseShape {
Json,
EmptyOk,
JsonOrNoContent,
}Expand description
What a 2xx answer on an endpoint may look like.
Variants§
Json
A non-empty JSON body.
EmptyOk
Any 2xx; the body is discarded.
JsonOrNoContent
204 (no body) or 200 with a JSON body. A 200 with an empty body is an error: only the 204 status means “nothing there”.
Trait Implementations§
Source§impl Clone for ResponseShape
impl Clone for ResponseShape
impl Copy for ResponseShape
Source§impl Debug for ResponseShape
impl Debug for ResponseShape
impl Eq for ResponseShape
Source§impl PartialEq for ResponseShape
impl PartialEq for ResponseShape
impl StructuralPartialEq for ResponseShape
Auto Trait Implementations§
impl Freeze for ResponseShape
impl RefUnwindSafe for ResponseShape
impl Send for ResponseShape
impl Sync for ResponseShape
impl Unpin for ResponseShape
impl UnsafeUnpin for ResponseShape
impl UnwindSafe for ResponseShape
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.