#[non_exhaustive]pub enum Body<V> {
OpenC2(V),
}Expand description
The body of an OpenC2 message.
The standard says this may be extended to other message types in the future.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
OpenC2(V)
An OpenC2 message body.
Trait Implementations§
Source§impl<B: AsRef<StatusCode>> AsRef<StatusCode> for Body<B>
impl<B: AsRef<StatusCode>> AsRef<StatusCode> for Body<B>
Source§fn as_ref(&self) -> &StatusCode
fn as_ref(&self) -> &StatusCode
Converts this type into a shared reference of the (usually inferred) input type.
Source§impl<'de, V> Deserialize<'de> for Body<V>where
V: Deserialize<'de>,
impl<'de, V> Deserialize<'de> for Body<V>where
V: Deserialize<'de>,
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<V> Freeze for Body<V>where
V: Freeze,
impl<V> RefUnwindSafe for Body<V>where
V: RefUnwindSafe,
impl<V> Send for Body<V>where
V: Send,
impl<V> Sync for Body<V>where
V: Sync,
impl<V> Unpin for Body<V>where
V: Unpin,
impl<V> UnwindSafe for Body<V>where
V: UnwindSafe,
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