pub fn validate_id_and_version<F: WithIdAndVersion<Id>, S: WithIdAndVersion<Id>, Id: IdType>(
    error_details: &mut ErrorDetails<'_>,
    first: &F,
    second: &S
)