pub fn from_object(object: &mut Object) -> Option<Entry> {
        if object.has_root() {
            Some(Entry::Root(object.take_root()))
        } else if object.has_domain() {
            Some(Entry::Domain(object.take_domain()))
        } else if object.has_org_unit() {
            Some(Entry::OrgUnit(object.take_org_unit()))
        } else if object.has_system() {
            Some(Entry::System(object.take_system()))
        } else if object.has_credential() {
            Some(Entry::Credential(object.take_credential()))
        } else {
            None
        }
    }
/// Convert an object to the `Entry` sum type
Convert an object to the `Entry` sum type
Convert an object to the ` Entry ` sum type
pub fn from_object(object: &mut Object) -> Option<Entry> {
        if object.has_root() {
            Some(Entry::Root(object.take_root()))
        } else if object.has_domain() {
            Some(Entry::Domain(object.take_domain()))
        } else if object.has_org_unit() {
            Some(Entry::OrgUnit(object.take_org_unit()))
        } else if object.has_system() {
            Some(Entry::System(object.take_system()))
        } else if object.has_credential() {
            Some(Entry::Credential(object.take_credential()))
        } else {
            None
        }
    }
pub fn from_object ( object : & mut Object ) -> Option < Entry > { if object . has_root ( ) { Some ( Entry :: Root ( object . take_root ( ) ) ) } else if object . has_domain ( ) { Some ( Entry :: Domain ( object . take_domain ( ) ) ) } else if object . has_org_unit ( ) { Some ( Entry :: OrgUnit ( object . take_org_unit ( ) ) ) } else if object . has_system ( ) { Some ( Entry :: System ( object . take_system ( ) ) ) } else if object . has_credential ( ) { Some ( Entry :: Credential ( object . take_credential ( ) ) ) } else { None } }
Convert an object to the `Entry` sum type
Convert an object to the ` Entry ` sum type
object
&mut Object
object
&mut Object