pub enum ExpectedContentType {
Json,
PlainText,
}Variants§
Json
We’re expecting JSON in the response—always attempt to parse/repair.
PlainText
We’re expecting just raw text—no JSON parsing at all.
Trait Implementations§
Source§impl Clone for ExpectedContentType
impl Clone for ExpectedContentType
Source§fn clone(&self) -> ExpectedContentType
fn clone(&self) -> ExpectedContentType
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 ExpectedContentType
impl Debug for ExpectedContentType
impl Copy for ExpectedContentType
Auto Trait Implementations§
impl Freeze for ExpectedContentType
impl RefUnwindSafe for ExpectedContentType
impl Send for ExpectedContentType
impl Sync for ExpectedContentType
impl Unpin for ExpectedContentType
impl UnwindSafe for ExpectedContentType
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