pub struct HttpRepresentation {
pub content_type: ContentType,
pub ty: TypeSpec,
pub is_byte: bool,
}Expand description
One content-negotiated representation of an @http union response.
Fields§
§content_type: ContentTypeShared protocol value; both the case name and media type derive from it.
ty: TypeSpecCase payload type.
is_byte: boolsequence<octet> cases respond with raw bytes.
Trait Implementations§
Source§impl Clone for HttpRepresentation
impl Clone for HttpRepresentation
Source§impl Debug for HttpRepresentation
impl Debug for HttpRepresentation
Source§impl<'de> Deserialize<'de> for HttpRepresentation
impl<'de> Deserialize<'de> for HttpRepresentation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for HttpRepresentation
impl RefUnwindSafe for HttpRepresentation
impl Send for HttpRepresentation
impl Sync for HttpRepresentation
impl Unpin for HttpRepresentation
impl UnsafeUnpin for HttpRepresentation
impl UnwindSafe for HttpRepresentation
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