pub fn check_new_entry_header(header: &Header) -> SysValidationResult<()> {
    match header {
        Header::Create(_) | Header::Update(_) => Ok(()),
        _ => Err(ValidationOutcome::NotNewEntry(header.clone()).into()),
    }
}
/// Check the header should have an entry.
/// Is either a Create or Update
Check the header should have an entry.
Is either a Create or Update
Check the header should have an entry . Is either a Create or Update
pub fn check_new_entry_header(header: &Header) -> SysValidationResult<()> {
    match header {
        Header::Create(_) | Header::Update(_) => Ok(()),
        _ => Err(ValidationOutcome::NotNewEntry(header.clone()).into()),
    }
}
pub fn check_new_entry_header ( header : & Header ) -> SysValidationResult < ( ) > { match header { Header :: Create ( _ ) | Header :: Update ( _ ) => Ok ( ( ) ) , _ => Err ( ValidationOutcome :: NotNewEntry ( header . clone ( ) ) . into ( ) ) , } }
Check the header should have an entry.
Check the header should have an entry .
header
&Header
header
&Header