pub fn serialize(&self) -> Result<Vec<u8>> {
        let result = match *self {
            Entry::Root(ref entry) => entry.write_to_bytes()?,
            Entry::Domain(ref entry) => entry.write_to_bytes()?,
            Entry::OrgUnit(ref entry) => entry.write_to_bytes()?,
            Entry::System(ref entry) => entry.write_to_bytes()?,
            Entry::Credential(ref entry) => entry.write_to_bytes()?,
        };

        Ok(result)
    }
/// Serialize an entry in its byte representation
Serialize an entry in its byte representation
Serialize an entry in its byte representation
pub fn serialize(&self) -> Result<Vec<u8>> {
        let result = match *self {
            Entry::Root(ref entry) => entry.write_to_bytes()?,
            Entry::Domain(ref entry) => entry.write_to_bytes()?,
            Entry::OrgUnit(ref entry) => entry.write_to_bytes()?,
            Entry::System(ref entry) => entry.write_to_bytes()?,
            Entry::Credential(ref entry) => entry.write_to_bytes()?,
        };
        Ok(result)
    }
pub fn serialize ( & self ) -> Result < Vec < u8 > > { let result = match * self { Entry :: Root ( ref entry ) => entry . write_to_bytes ( ) ? , Entry :: Domain ( ref entry ) => entry . write_to_bytes ( ) ? , Entry :: OrgUnit ( ref entry ) => entry . write_to_bytes ( ) ? , Entry :: System ( ref entry ) => entry . write_to_bytes ( ) ? , Entry :: Credential ( ref entry ) => entry . write_to_bytes ( ) ? , } ; Ok ( result ) }
Serialize an entry in its byte representation
Serialize an entry in its byte representation
&self
&self