👎Deprecated since 0.5.0: diff chain features are slated for removal
Expand description
§IOTA Identity - Diff
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.
Structs§
- Diff
Hash Map Deprecated - A
DiffHashMap
type which represents a DiffedHashMap
. By default this value is transparent toserde
. - Diff
Hash Set Deprecated - Diff
String Deprecated - The Diff Type for a
String
type. - DiffVec
Deprecated - The Diff Type for
Vec
.
Enums§
- Diff
Option Deprecated - A
DiffOption<T>
type which represents a DiffedOption<T>
. By default this value is untagged forserde
. It also convertsto
andfrom
Optionwhen serialized/deserialized - Error
Deprecated
Traits§
- Diff
Deprecated - The primary
Diff
Trait type.
Type Aliases§
- Diff
Object Deprecated - Result
Deprecated