Crates.io | identity-diff |
lib.rs | identity-diff |
version | 0.6.3 |
source | src |
created_at | 2022-06-10 10:45:16.85391 |
updated_at | 2023-08-17 15:18:45.962925 |
description | `Diff` trait to compute and merge data structure differences. |
homepage | https://www.iota.org |
repository | https://github.com/iotaledger/identity.rs |
max_upload_size | |
id | 603467 |
size | 52,365 |
This module implements a Diff
trait. This gives data structures the ability to compare
themselves to another data structure of the same type over time. The library pairs off with [identity_diff_derive
], which implements a derive macro for the Diff
Trait.
Types supported include HashMap
, Option
, String
,
serde_json::Value
, Vec
and primitives such as i8
/u8
up to usize
and isize
, as well as the unit type ()
, bool
, and char
types. Structs and Enums are supported via [identity_diff_derive
] and can be composed of any number of these types.