pub enum RejectionBody {
Decoded(Rejection),
Raw(String),
}Expand description
What GitHub answered a rejected request with.
Variants§
Decoded(Rejection)
The body decodes as an error object.
Raw(String)
The body does not decode. This is the summarized raw body.
Implementations§
Trait Implementations§
Source§impl Clone for RejectionBody
impl Clone for RejectionBody
Source§fn clone(&self) -> RejectionBody
fn clone(&self) -> RejectionBody
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RejectionBody
impl Debug for RejectionBody
impl Eq for RejectionBody
Source§impl PartialEq for RejectionBody
impl PartialEq for RejectionBody
impl StructuralPartialEq for RejectionBody
Auto Trait Implementations§
impl Freeze for RejectionBody
impl RefUnwindSafe for RejectionBody
impl Send for RejectionBody
impl Sync for RejectionBody
impl Unpin for RejectionBody
impl UnsafeUnpin for RejectionBody
impl UnwindSafe for RejectionBody
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.