pub fn check_update_reference(
    eu: &Update,
    original_entry_header: &NewEntryHeaderRef<'_>,
) -> SysValidationResult<()> {
    if eu.entry_type == *original_entry_header.entry_type() {
        Ok(())
    } else {
        Err(ValidationOutcome::UpdateTypeMismatch(
            eu.entry_type.clone(),
            original_entry_header.entry_type().clone(),
        )
        .into())
    }
}
/// Check a Update's entry type is the same for
/// original and new entry.
Check a Update's entry type is the same for
original and new entry.
Check a Update ' s entry type is the same for original and new entry .
pub fn check_update_reference(
    eu: &Update,
    original_entry_header: &NewEntryHeaderRef<'_>,
) -> SysValidationResult<()> {
    if eu.entry_type == *original_entry_header.entry_type() {
        Ok(())
    } else {
        Err(ValidationOutcome::UpdateTypeMismatch(
            eu.entry_type.clone(),
            original_entry_header.entry_type().clone(),
        )
        .into())
    }
}
pub fn check_update_reference ( eu : & Update , original_entry_header : & NewEntryHeaderRef < ' _ > , ) -> SysValidationResult < ( ) > { if eu . entry_type == * original_entry_header . entry_type ( ) { Ok ( ( ) ) } else { Err ( ValidationOutcome :: UpdateTypeMismatch ( eu . entry_type . clone ( ) , original_entry_header . entry_type ( ) . clone ( ) , ) . into ( ) ) } }
Check a Update's entry type is the same for
original and new entry.
Check a Update ' s entry type is the same for original and new entry .
eu
&Update
original_entry_header
&NewEntryHeaderRef<'_>
eu
&Update
original_entry_header
&NewEntryHeaderRef<'_>