about summary refs log tree commit diff
path: root/src/block/extension/application.rs
blob: 9ec1814bc07e625eedc7b0ff3eb83b0eddaf2029 (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
	}
}