Skip to main content

EntityTypeValidatorFn

Type Alias EntityTypeValidatorFn 

Source
pub type EntityTypeValidatorFn = Arc<dyn Fn(&str, Option<&str>) -> Result<Option<String>, RuntimeError> + Send + Sync>;
Expand description

Callback type for pack-installed entity-type validators.

Receives (kind, entity_type) and returns the normalised type string, or RuntimeError::InvalidInput if the type is not registered for that kind. When entity_type is None, the implementation must return Ok(None).

Aliased Typeยง

pub struct EntityTypeValidatorFn { /* private fields */ }