pub fn partition_rule_for_hexstring( ident: &str, partition_num: Option<u32>, ) -> Result<Partitions>