usage for `gitlab::api::paged` question.
Sorry, this is more of a question then a issue, sorry if I opened this in the wrong place.
I'm trying to figure out the correct usage for the gitlab::api::paged
.
let endpoint = ProtectedTags::builder()
.project(project.id())
.build()
.unwrap();
let tags = gitlab::api::paged(endpoint, Pagination::All).query(&client);
for tag in tags {
info!("{:#?}", tag);
}
This seems to mimic all_at_once.rs:375 but when I try to use this, I get the following error:
error[E0599]: no method named `query` found for struct `Paged` in the current scope
--> src/handlers.rs:366:60
|
366 | let tags = gitlab::api::paged(endpoint, Pagination::All).query(&client);
| ^^^^^ method not found in `Paged<ProtectedTags<'_>>`
For more information about this error, try `rustc --explain E0599`.
What am I doing wrong?