goauthentik / goauthentik/client-rust
Understanding the Pagination struct (PEBKAC, probably)
- Dominant language
- Rust
- Stars
- 7
- Forks
- 6
- Avg merge
- 6h 57m
- Merged PRs (30d)
- 3
Description
Heyo, thanks for making this library!
I have a (hopefully) simple question about the Pagination struct as defined [here](https://github.com/goauthentik/client-rust/blob/version/2026.2.1/src/models/pagination.rs#L14-L30). Something just isn't clicking in my brain.
Intuitively, I'd expect most or all of the fields to be like... `usize` or `u64` or something, but they're all... `f64`?
I'm having some difficulty wrapping my head around what a fractional (or negative) value would imply about the results?
Looking at the API docs, for say... [`core_users_list`](https://api.goauthentik.io/reference/core-users-list/) (and assuming others behave similarly), I can see that the values are listed as `number`, so maybe this is just how the generator produces things?
If it's coincidental, is this something that could be changed in a future release? I recognize that changing a public data type with wide use throughout the library would be (somewhat large) breaking change, and I don't know if "making it more intuitive" is a good enough reason to do that.
On the other hand, If there's some reason why it _should_ be this way, and I've overlooked that, that's on me, and I'd welcome the chance to fill in the gaps in my understanding, so any assistance there would be appreciated.
Thanks for taking the time to consider my question(s)!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.