pub enum MacroOrMessageDataItemNames<'a> {
Macro(Macro),
MessageDataItemNames(Vec<MessageDataItemName<'a>>),
}
Expand description
Either a macro or a list of message data items.
A macro must be used by itself, and not in conjunction with other macros or data items.
Variants§
Macro(Macro)
MessageDataItemNames(Vec<MessageDataItemName<'a>>)
Trait Implementations§
source§impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for MacroOrMessageDataItemNames<'a>
impl<'a, 'arbitrary: 'a> Arbitrary<'arbitrary> for MacroOrMessageDataItemNames<'a>
source§fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary(u: &mut Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the given unstructured data. Read moresource§fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
fn arbitrary_take_rest(u: Unstructured<'arbitrary>) -> Result<Self>
Generate an arbitrary value of
Self
from the entirety of the given
unstructured data. Read moresource§impl<'a> Clone for MacroOrMessageDataItemNames<'a>
impl<'a> Clone for MacroOrMessageDataItemNames<'a>
source§fn clone(&self) -> MacroOrMessageDataItemNames<'a>
fn clone(&self) -> MacroOrMessageDataItemNames<'a>
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<'a> Debug for MacroOrMessageDataItemNames<'a>
impl<'a> Debug for MacroOrMessageDataItemNames<'a>
source§impl<'de, 'a> Deserialize<'de> for MacroOrMessageDataItemNames<'a>
impl<'de, 'a> Deserialize<'de> for MacroOrMessageDataItemNames<'a>
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
source§impl<'a> From<Macro> for MacroOrMessageDataItemNames<'a>
impl<'a> From<Macro> for MacroOrMessageDataItemNames<'a>
source§impl<'a> From<Vec<MessageDataItemName<'a>, Global>> for MacroOrMessageDataItemNames<'a>
impl<'a> From<Vec<MessageDataItemName<'a>, Global>> for MacroOrMessageDataItemNames<'a>
source§fn from(item_names: Vec<MessageDataItemName<'a>>) -> Self
fn from(item_names: Vec<MessageDataItemName<'a>>) -> Self
Converts to this type from the input type.
source§impl<'a> Hash for MacroOrMessageDataItemNames<'a>
impl<'a> Hash for MacroOrMessageDataItemNames<'a>
source§impl<'a> IntoBoundedStatic for MacroOrMessageDataItemNames<'a>
impl<'a> IntoBoundedStatic for MacroOrMessageDataItemNames<'a>
§type Static = MacroOrMessageDataItemNames<'static>
type Static = MacroOrMessageDataItemNames<'static>
The target type is bounded by the
'static
lifetime.source§fn into_static(self) -> Self::Static
fn into_static(self) -> Self::Static
Convert an owned
T
into an owned T
such that T: 'static
.source§impl<'a> PartialEq<MacroOrMessageDataItemNames<'a>> for MacroOrMessageDataItemNames<'a>
impl<'a> PartialEq<MacroOrMessageDataItemNames<'a>> for MacroOrMessageDataItemNames<'a>
source§fn eq(&self, other: &MacroOrMessageDataItemNames<'a>) -> bool
fn eq(&self, other: &MacroOrMessageDataItemNames<'a>) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl<'a> Serialize for MacroOrMessageDataItemNames<'a>
impl<'a> Serialize for MacroOrMessageDataItemNames<'a>
source§impl<'a> ToBoundedStatic for MacroOrMessageDataItemNames<'a>
impl<'a> ToBoundedStatic for MacroOrMessageDataItemNames<'a>
impl<'a> Eq for MacroOrMessageDataItemNames<'a>
impl<'a> StructuralEq for MacroOrMessageDataItemNames<'a>
impl<'a> StructuralPartialEq for MacroOrMessageDataItemNames<'a>
Auto Trait Implementations§
impl<'a> RefUnwindSafe for MacroOrMessageDataItemNames<'a>
impl<'a> Send for MacroOrMessageDataItemNames<'a>
impl<'a> Sync for MacroOrMessageDataItemNames<'a>
impl<'a> Unpin for MacroOrMessageDataItemNames<'a>
impl<'a> UnwindSafe for MacroOrMessageDataItemNames<'a>
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