brycx / pasetors

PASETOrs: PASETO tokens in pure Rust
MIT License
87 stars 9 forks source link

Implement `Debug` + `Clone` + `PartialEq` where missing #57

Closed brycx closed 2 years ago

brycx commented 2 years ago

See https://github.com/brycx/pasetors/issues/54

AsymmetricKeyPair, SymmetricKey and AsymmetricSecretKey shouldn't have Clone unless a real use-case comes up since they hold secret data.

LocalToken/PublicToken structs for each given version shouldn't need it because you never actually create and instance of either.

The rest of the types should implement the following traits now at least: Debug, PartialEq and Clone.