add basic serde support

This commit is contained in:
Henry Schimke
2023-01-26 14:01:29 -06:00
parent 081577591f
commit 6355dc1bfd
11 changed files with 49 additions and 6 deletions

View File

@@ -14,10 +14,14 @@
* limitations under the License.
*/
#[cfg(feature = "serde")]
use serde::{Deserialize, Serialize};
/**
* Enumeration for DataMatrix symbol shape hint. It can be used to force square or rectangular
* symbols.
*/
#[cfg_attr(feature = "serde", derive(Serialize, Deserialize))]
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
pub enum SymbolShapeHint {
FORCE_NONE,