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
impl StructuralPartialEq for SubtypeElement
Auto Trait Implementations§
impl Freeze for SubtypeElement
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
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
)