rasn/types/
open.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
use super::*;
use crate::{Decode, Encode};

/// An "open" type representing any valid ASN.1 type.
#[derive(AsnType, Debug, Clone, PartialEq, Eq, PartialOrd, Ord, Decode, Encode)]
#[rasn(crate_root = "crate")]
#[rasn(choice)]
pub enum Open {
    /// A bit string value.
    BitString(BitString),
    // BmpString(BmpString),
    /// A bool value.
    Bool(bool),
    /// A generalized time value.
    GeneralizedTime(GeneralizedTime),
    // Ia5String(Ia5String),
    /// A integer value.
    Integer(Integer),
    /// A null value.
    Null,
    /// A object identifier value.
    ObjectIdentifier(ObjectIdentifier),
    /// A octet string value.
    OctetString(OctetString),
    // PrintableString(PrintableString),
    /// A universal string value.
    UniversalString(UniversalString),
    /// A utc time value.
    UtcTime(UtcTime),
    /// A visible string value.
    VisibleString(VisibleString),
    /// An "instance of" value.
    InstanceOf(alloc::boxed::Box<InstanceOf<Open>>),
}