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

A commit represents the root of a tree, as evolved from its parents

Fields of Commit

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

Trait Implementations

impl Debug for Object
[src]

Formats the value using the given formatter.

impl Decodable for Object
[src]

Deserialize a value using a Decoder.

impl Encodable for Object
[src]

Serialize a value using an Encoder.