#[non_exhaustive]pub struct EnumEntryDecl {
pub name: String,
pub value: EnumValueSrc,
pub display_name: Option<String>,
pub predicates: PredicateRefs,
pub is_self_clearing: bool,
}Expand description
Declaration for a single enumeration entry.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringSymbolic entry name exposed to clients.
value: EnumValueSrcSource describing how to resolve the numeric value for this entry.
display_name: Option<String>Optional user facing label.
predicates: PredicateRefsPredicate refs controlling whether this entry is implemented / available.
is_self_clearing: bool<IsSelfClearing>Yes</IsSelfClearing>: the device leaves this entry by
itself. GenICam Standard v2.1.1 §2.8.10: an enumeration’s
<PollingTime> polls only while its value is such an entry.
Trait Implementations§
Source§impl Clone for EnumEntryDecl
impl Clone for EnumEntryDecl
Source§impl Debug for EnumEntryDecl
impl Debug for EnumEntryDecl
Source§impl<'de> Deserialize<'de> for EnumEntryDecl
impl<'de> Deserialize<'de> for EnumEntryDecl
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
impl Eq for EnumEntryDecl
Source§impl PartialEq for EnumEntryDecl
impl PartialEq for EnumEntryDecl
Source§impl Serialize for EnumEntryDecl
impl Serialize for EnumEntryDecl
impl StructuralPartialEq for EnumEntryDecl
Auto Trait Implementations§
impl Freeze for EnumEntryDecl
impl RefUnwindSafe for EnumEntryDecl
impl Send for EnumEntryDecl
impl Sync for EnumEntryDecl
impl Unpin for EnumEntryDecl
impl UnsafeUnpin for EnumEntryDecl
impl UnwindSafe for EnumEntryDecl
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