Derive traits on packet validation error enum