pub enum SubtypeElement {
SingleValue {
value: ASN1Value,
extensible: bool,
},
ContainedSubtype {
subtype: ASN1Type,
extensible: bool,
},
ValueRange {
min: Option<ASN1Value>,
max: Option<ASN1Value>,
extensible: bool,
},
PermittedAlphabet(Box<ElementOrSetOperation>),
SizeConstraint(Box<ElementOrSetOperation>),
TypeConstraint(ASN1Type),
SingleTypeConstraint(InnerTypeConstraint),
MultipleTypeConstraints(InnerTypeConstraint),
PatternConstraint(PatternConstraint),
UserDefinedConstraint(UserDefinedConstraint),
PropertySettings(PropertySettings),
}
Variants§
SingleValue
ContainedSubtype
ValueRange
PermittedAlphabet(Box<ElementOrSetOperation>)
SizeConstraint(Box<ElementOrSetOperation>)
TypeConstraint(ASN1Type)
SingleTypeConstraint(InnerTypeConstraint)
MultipleTypeConstraints(InnerTypeConstraint)
PatternConstraint(PatternConstraint)
UserDefinedConstraint(UserDefinedConstraint)
PropertySettings(PropertySettings)
Trait Implementations§
source§impl Clone for SubtypeElement
impl Clone for SubtypeElement
source§fn clone(&self) -> SubtypeElement
fn clone(&self) -> SubtypeElement
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 Debug for SubtypeElement
impl Debug for SubtypeElement
source§impl From<(ASN1Value, Option<ExtensionMarker>)> for SubtypeElement
impl From<(ASN1Value, Option<ExtensionMarker>)> for SubtypeElement
source§impl From<(Option<ExtensionMarker>, Vec<(&str, Option<Vec<Constraint>>, Option<ComponentPresence>)>)> for SubtypeElement
impl From<(Option<ExtensionMarker>, Vec<(&str, Option<Vec<Constraint>>, Option<ComponentPresence>)>)> for SubtypeElement
source§fn from(
value: (Option<ExtensionMarker>, Vec<(&str, Option<Vec<Constraint>>, Option<ComponentPresence>)>)
) -> Self
fn from( value: (Option<ExtensionMarker>, Vec<(&str, Option<Vec<Constraint>>, Option<ComponentPresence>)>) ) -> Self
Converts to this type from the input type.
source§impl From<Constraint> for SubtypeElement
impl From<Constraint> for SubtypeElement
source§fn from(value: Constraint) -> Self
fn from(value: Constraint) -> Self
Converts to this type from the input type.
source§impl PartialEq for SubtypeElement
impl PartialEq for SubtypeElement
source§fn eq(&self, other: &SubtypeElement) -> bool
fn eq(&self, other: &SubtypeElement) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SubtypeElement
Auto Trait Implementations§
impl RefUnwindSafe for SubtypeElement
impl Send for SubtypeElement
impl Sync for SubtypeElement
impl Unpin for SubtypeElement
impl UnwindSafe for SubtypeElement
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