Enum rubbish::fs::Object
[−]
[src]
pub enum Object { Commit { tree: Hash, parents: Vec<Hash>, }, Tree { data: Option<String>, children: Vec<(String, Hash)>, }, }
Objects get encoded into the CAS, but are interlinked with hashes instead of references.
Variants
Commit
A commit represents the root of a tree, as evolved from its parents
Fields of Commit
tree: Hash | |
parents: Vec<Hash> |
Tree
A tree represents a "directory", containing more trees; children are (name, hash_of_value) pairs, ordered by name, with duplicate names forbidden.
Fields of Tree
data: Option<String> | |
children: Vec<(String, Hash)> |
Trait Implementations
impl Debug for Object
[src]
impl Decodable for Object
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Object, __D::Error>
Deserialize a value using a Decoder
.