pub enum AnyContentType {
JMBL(JMBLContent),
JsonStream(JsonStreamContent),
BinaryStream(BinaryStreamContent),
}Variants§
Implementations§
Source§impl AnyContentType
impl AnyContentType
pub fn expect_jmbl(&self) -> JMBLContent
pub fn expect_json_stream(&self) -> JsonStreamContent
pub fn expect_binary_stream(&self) -> BinaryStreamContent
Trait Implementations§
Source§impl Clone for AnyContentType
impl Clone for AnyContentType
Source§fn clone(&self) -> AnyContentType
fn clone(&self) -> AnyContentType
Returns a duplicate 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 ContentType for AnyContentType
impl ContentType for AnyContentType
Source§impl From<BinaryStreamContent> for AnyContentType
impl From<BinaryStreamContent> for AnyContentType
Source§fn from(binary_stream: BinaryStreamContent) -> AnyContentType
fn from(binary_stream: BinaryStreamContent) -> AnyContentType
Converts to this type from the input type.
Source§impl From<JMBLContent> for AnyContentType
impl From<JMBLContent> for AnyContentType
Source§fn from(jmbl: JMBLContent) -> AnyContentType
fn from(jmbl: JMBLContent) -> AnyContentType
Converts to this type from the input type.
Source§impl From<JsonStreamContent> for AnyContentType
impl From<JsonStreamContent> for AnyContentType
Source§fn from(json_stream: JsonStreamContent) -> AnyContentType
fn from(json_stream: JsonStreamContent) -> AnyContentType
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for AnyContentType
impl !RefUnwindSafe for AnyContentType
impl !Send for AnyContentType
impl !Sync for AnyContentType
impl Unpin for AnyContentType
impl !UnwindSafe for AnyContentType
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