Skip to main content

rasn_cbr/
lib.rs

1#![doc = include_str!("../README.md")]
2#![no_std]
3
4extern crate alloc;
5
6use rasn::prelude::*;
7
8pub const PAL_ZONE: &Oid = Oid::const_new(&[1, 3, 6, 1, 4, 1, 46609, 1, 2]);
9pub const PAL_FREQUENCY: &Oid = Oid::const_new(&[1, 3, 6, 1, 4, 1, 46609, 1, 3]);
10pub const CBSD_FCCID: &Oid = Oid::const_new(&[1, 3, 6, 1, 4, 1, 46609, 1, 4]);
11pub const CBSD_SERIAL: &Oid = Oid::const_new(&[1, 3, 6, 1, 4, 1, 46609, 1, 5]);
12pub const SAS_FRN: &Oid = Oid::const_new(&[1, 3, 6, 1, 4, 1, 46609, 1, 6]);
13pub const CPIR: &Oid = Oid::const_new(&[1, 3, 6, 1, 4, 1, 46609, 1, 7]);
14pub const TEST: &Oid = Oid::const_new(&[1, 3, 6, 1, 4, 1, 46609, 1, 8]);
15
16#[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
17#[rasn(delegate)]
18pub struct CpirId(pub Utf8String);
19
20#[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
21#[rasn(delegate)]
22pub struct FccId(pub Utf8String);
23
24#[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
25#[rasn(delegate)]
26pub struct Frequency(pub Utf8String);
27
28#[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
29#[rasn(delegate)]
30pub struct Frn(pub Utf8String);
31
32#[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
33#[rasn(delegate)]
34pub struct Serial(pub Utf8String);
35
36#[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
37#[rasn(delegate)]
38pub struct Test(pub Utf8String);
39
40#[derive(AsnType, Debug, Clone, Decode, Encode, PartialEq, Eq, Hash)]
41#[rasn(delegate)]
42pub struct Zone(pub Utf8String);