with-id-derive

Crates.iowith-id-derive
lib.rswith-id-derive
version1.0.3
sourcesrc
created_at2023-03-20 11:05:57.438561
updated_at2023-03-20 22:17:18.350697
descriptionA derive macro for with-id
homepage
repositoryhttps://github.com/ArseniiRudenko/with-id
max_upload_size
id815153
size8,347
Arsenii Rudenko (ArseniiRudenko)

documentation

README

With id derive

Derive macros for with-id crate. See docs for with-id.

Implementation details

  • When deriving implementation for WithRefId, for String field macro will generate &str return type, so type of derived implementation will be WithRefId<str>, not WithRefId<String>
  • Macro does not check if type implements ToString (in case of WithStringId) and Clone in case of WithId, and will fail if it doesn't
Commit count: 12

cargo fmt