pub fn branch_rule_types(
token: &str,
repo: &Repo,
branch: &str,
) -> Result<Vec<String>>Expand description
The type of each rule that applies to branch, from
GET /repos/{owner}/{repo}/rules/branches/{branch} (get rules for a
branch). The list is empty when no rule applies.
ยงErrors
Returns an error when the GitHub client cannot be built or the request or its decoding fails, including the 403 and 404 answers of a token that cannot read the rules.