blob: b3516d834106e9ac613f5331d30dc3962a473188 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
pub struct Application {
pub(crate) identifier: String, // max len 8
pub(crate) authentication_code: [u8; 3],
pub(crate) data: Vec<u8>,
}
impl Application {
pub fn identifier(&self) -> &str {
&self.identifier
}
pub fn authentication_code(&self) -> &[u8] {
&self.authentication_code
}
}
|