#[non_exhaustive]pub enum GeneratedDevice {
Short(GeneratedString),
Long(GeneratedLongDevice),
}Expand description
One generated service device with explicit short or long syntax.
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.
Short(GeneratedString)
Emit one exact raw YAML string short item.
Long(GeneratedLongDevice)
Emit one ordered long mapping.
Trait Implementations§
Source§impl Clone for GeneratedDevice
impl Clone for GeneratedDevice
Source§fn clone(&self) -> GeneratedDevice
fn clone(&self) -> GeneratedDevice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GeneratedDevice
impl Debug for GeneratedDevice
impl Eq for GeneratedDevice
Source§impl PartialEq for GeneratedDevice
impl PartialEq for GeneratedDevice
impl StructuralPartialEq for GeneratedDevice
Auto Trait Implementations§
impl Freeze for GeneratedDevice
impl RefUnwindSafe for GeneratedDevice
impl Send for GeneratedDevice
impl Sync for GeneratedDevice
impl Unpin for GeneratedDevice
impl UnsafeUnpin for GeneratedDevice
impl UnwindSafe for GeneratedDevice
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