Struct fog_pack::entry::NewEntry[][src]

pub struct NewEntry { /* fields omitted */ }
Expand description

A new Entry that has not yet been validated.

This struct acts like an Entry, but cannot be decoded until it has passed through a Schema.

Implementations

Create a new Entry from any serializable data, a key, and the Hash of the parent document.

Create a new Entry from a key, the Hash of the parent document, and any serializable data whose keys are all ordered. For structs, this means all fields are declared in lexicographic order. For maps, this means a BTreeMap type must be used, whose keys are ordered such that they serialize to lexicographically ordered strings. All sub-structs and sub-maps must be similarly ordered.

Override the default compression settings. None will disable compression. Some(level) will compress with the provided level as the setting for the algorithm.

Sign the document, or or replace the existing signature if one exists already. Fails if the signature would grow the document size beyond the maximum allowed.

Get what the document’s hash will be, given its current state

Get the hash of the Entry’s parent Document.

Get the Entry’s string key.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.