mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 12:22:34 +00:00
add basic serde support
This commit is contained in:
@@ -20,9 +20,13 @@ use std::fmt;
|
||||
|
||||
use crate::Exceptions;
|
||||
|
||||
#[cfg(feature = "serde")]
|
||||
use serde::{Deserialize, Serialize};
|
||||
|
||||
/**
|
||||
* Simply encapsulates a width and height.
|
||||
*/
|
||||
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
|
||||
#[derive(Eq, PartialEq, Hash, Copy, Clone)]
|
||||
pub struct Dimension(usize, usize);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user