pub async fn numbering_preview(
pool: &PgPool,
project: &Project,
scheme: Option<&str>,
) -> AppResult<NumberingPreview>Expand description
The numbers the next new items would get with scheme (the project’s own
scheme when None), without using up any. Manually entered numbers that
are already taken are skipped when an item is created, so the real number
can be higher.
A scheme typed in reads the counter the group would use with it; the
counters of restricted groups with a scheme of their own are private
(see number_counter), so no scheme reads them from another group.