pub struct Data {
pub version: usize,
pub ecc_level: EccLevel,
pub mask: i32,
pub data_type: Option<DataType>,
pub payload: Vec<u8>,
pub eci: Option<Eci>,
}Expand description
This structure holds the decoded QR-code data
Fields§
§version: usizeVarious parameters of the QR-code. These can mostly be ignored if you only care about the data.
ecc_level: EccLevel§mask: i32§data_type: Option<DataType>This field is the highest-valued data type found in the QR code.
payload: Vec<u8>Data payload. For the Kanji datatype, payload is encoded as Shift-JIS. For all other datatypes, payload is ASCII text.
eci: Option<Eci>ECI assignment number
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Data
impl RefUnwindSafe for Data
impl Send for Data
impl Sync for Data
impl Unpin for Data
impl UnsafeUnpin for Data
impl UnwindSafe for Data
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