ntdsextract2 1.4.25

Display contents of Active Directory database files (ntds.dit)
use dfir_windows_types::Guid;

use crate::cache::RecordId;

#[derive(Debug, Copy, Clone)]
pub enum EntryId {
    Id(RecordId),
    Rid(u32),
    Guid(Guid),
}

impl From<RecordId> for EntryId {
    fn from(record_id: RecordId) -> Self {
        Self::Id(record_id)
    }
}

impl From<&RecordId> for EntryId {
    fn from(record_id: &RecordId) -> Self {
        Self::Id(*record_id)
    }
}