#[repr(u8)]pub enum RejectionDetail {
Field(FieldRejection),
Text(String),
}Expand description
One problem in a Rejection. GitHub sends an object or a plain string,
depending on the endpoint.
Variants§
Field(FieldRejection)
A problem with the resource, field and code.
Text(String)
A problem described by one string.
Trait Implementations§
Source§impl Clone for RejectionDetail
impl Clone for RejectionDetail
Source§fn clone(&self) -> RejectionDetail
fn clone(&self) -> RejectionDetail
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 RejectionDetail
impl Debug for RejectionDetail
impl Eq for RejectionDetail
Source§impl<'ʄ> Facet<'ʄ> for RejectionDetail
impl<'ʄ> Facet<'ʄ> for RejectionDetail
Source§impl PartialEq for RejectionDetail
impl PartialEq for RejectionDetail
impl StructuralPartialEq for RejectionDetail
Auto Trait Implementations§
impl Freeze for RejectionDetail
impl RefUnwindSafe for RejectionDetail
impl Send for RejectionDetail
impl Sync for RejectionDetail
impl Unpin for RejectionDetail
impl UnsafeUnpin for RejectionDetail
impl UnwindSafe for RejectionDetail
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.