Skip to main content

account_serves

Function account_serves 

Source
pub fn account_serves<S: BuildHasher>(
    models: &[String],
    model_aliases: &HashMap<String, Vec<String>, S>,
    model: &str,
) -> bool
Expand description

true when an account declaring models serves model: it declares the name, or declares it as an alias of a model it does. The one home for the rule: the selection walk, the route’s binding gate, and the config load gate all match a request’s model here.