pub struct Enumeral {
pub name: String,
pub description: Option<String>,
pub index: i128,
}
Expand description
Representation of a single member/enumeral of an ASN1 ENUMERATED data element.
§Example
The ASN.1 ENUMERATED defined as
ⓘ
Test-Enum ::= ENUMERATED {
first-item(7) -- This is the first item of Test-Enum
}
defines one option, which is representated as follows
Enumeral {
name: String::from("first-item"),
description: Some(String::from(" This is the first item of Test-Enum")),
index: 7
}
Fields§
§name: String
§description: Option<String>
§index: i128
Trait Implementations§
impl StructuralPartialEq for Enumeral
Auto Trait Implementations§
impl Freeze for Enumeral
impl RefUnwindSafe for Enumeral
impl Send for Enumeral
impl Sync for Enumeral
impl Unpin for Enumeral
impl UnwindSafe for Enumeral
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)