pub enum Payload {
Binary(Vec<u8>),
Url(String),
Json(String),
}
Expand description
A dual type to hold the possible Response datatypes
Variants§
Binary(Vec<u8>)
Encodes Data using CBOR
Url(String)
Encodes data in the URL
Json(String)
Encodes Data using Json
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Payload
impl Send for Payload
impl Sync for Payload
impl Unpin for Payload
impl UnwindSafe for Payload
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