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
)