[−][src]Module holochain_persistence_api::cas::content
Implements a definition of what AddressableContent is by defining Content, defining Address, and defining the relationship between them. AddressableContent is a trait, meaning that it can be implemented for other structs. A test suite for AddressableContent is also implemented here.
Structs
AddressableContentTestSuite | |
ExampleAddressableContent | some struct that can be content addressed imagine an Entry, ChainHeader, Meta Value, etc. |
OtherExampleAddressableContent | another struct that can be content addressed used to show ExampleCas storing multiple types |
Traits
AddressableContent | can be stored as serialized content the content is the address, there is no "location" like a file system or URL @see https://en.wikipedia.org/wiki/Content-addressable_storage |
Type Definitions
Address | an Address for some Content ideally would be the Content but pragmatically must be Address consider what would happen if we had multi GB addresses... |
Content | the Content is a JsonString this is the only way to be confident in persisting all Rust types across all backends |