Struct fog_pack::document::NewDocument [−][src]
pub struct NewDocument(_);Expand description
Implementations
Create a new Entry from any serializable data, a key, and the Hash of the parent document.
Create a new Entry from 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.
Get the hash of the schema this document adheres to.
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. In the event of a failure, the document is dropped.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NewDocument
impl Send for NewDocument
impl Sync for NewDocument
impl Unpin for NewDocument
impl UnwindSafe for NewDocument
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self