pub struct ClassField {
pub name: String,
pub unique: bool,
pub optional: bool,
}Expand description
A field in an ASN.1 Information Object Class (X.681 §9)
Class fields use &-prefixed names (e.g., &id, &Value).
They are meta-schema constructs and have no direct DER encoding.
Fields§
§name: StringField name without the leading & (e.g., "id", "Value")
unique: boolWhether the field has the UNIQUE qualifier
optional: boolWhether the field has the OPTIONAL qualifier
Trait Implementations§
Source§impl Clone for ClassField
impl Clone for ClassField
Source§fn clone(&self) -> ClassField
fn clone(&self) -> ClassField
Returns a duplicate 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 Debug for ClassField
impl Debug for ClassField
Source§impl PartialEq for ClassField
impl PartialEq for ClassField
impl StructuralPartialEq for ClassField
Auto Trait Implementations§
impl Freeze for ClassField
impl RefUnwindSafe for ClassField
impl Send for ClassField
impl Sync for ClassField
impl Unpin for ClassField
impl UnsafeUnpin for ClassField
impl UnwindSafe for ClassField
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