pub fn new<S: Serialize>(data: S, key: &str, parent: &Hash) -> Result<Self> {
        Self::new_from(key, parent, |buf| {
            // Serialize the data
            let mut ser = FogSerializer::from_vec(buf, false);
            data.serialize(&mut ser)?;
            Ok(ser.finish())
        })
    }
/// 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, a key, and the Hash of the parent document.
Create a new Entry from any serializable data a key and the Hash of the parent document .
pub fn new<S: Serialize>(data: S, key: &str, parent: &Hash) -> Result<Self> {
        Self::new_from(key, parent, |buf| {
            // Serialize the data
            let mut ser = FogSerializer::from_vec(buf, false);
            data.serialize(&mut ser)?;
            Ok(ser.finish())
        })
    }
pub fn new < S : Serialize > ( data : S , key : & str , parent : & Hash ) -> Result < Self > { Self :: new_from ( key , parent , | buf | { // Serialize the data let mut ser = FogSerializer :: from_vec ( buf , false ) ; data . serialize ( & mut ser ) ? ; Ok ( ser . finish ( ) ) } ) }
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 a key and the Hash of the parent document .
data
S
key
&str
parent
&Hash
data
S
key
&str
parent
&Hash