missing trait when trying to fetch ProtectedTags
While trying to fetch the ProjectedTags of a project, I'm getting following error:
error[E0277]: the trait bound `for<'de> ProtectedTags<'_>: project::_::_serde::Deserialize<'de>` is not satisfied
--> src/handlers.rs:368:6
|
368 | .query(client)
| ^^^^^ the trait `for<'de> project::_::_serde::Deserialize<'de>` is not implemented for `ProtectedTags<'_>`
|
= help: the following other types implement trait `project::_::_serde::Deserialize<'de>`:
<bool as project::_::_serde::Deserialize<'de>>
<char as project::_::_serde::Deserialize<'de>>
<isize as project::_::_serde::Deserialize<'de>>
<i8 as project::_::_serde::Deserialize<'de>>
<i16 as project::_::_serde::Deserialize<'de>>
<i32 as project::_::_serde::Deserialize<'de>>
<i64 as project::_::_serde::Deserialize<'de>>
<i128 as project::_::_serde::Deserialize<'de>>
and 367 others
= note: required for `ProtectedTags<'_>` to implement `DeserializeOwned`
= note: required for `Paged<ProtectedTags<'_>>` to implement `Query<std::vec::Vec<ProtectedTags<'_>>, gitlab::Gitlab>`
For more information about this error, try `rustc --explain E0277`.
from the following code:
let endpoint = ProtectedTags::builder()
.project(1)
.build()
.unwrap();
let tags: Vec<ProtectedTags> = gitlab::api::paged(endpoint, Pagination::All)
.query(client)
.unwrap();
for tag in tags {
info!("{:#?}", tag);
}
I believe this is a side effect of #101 (closed) but I'm not 100% sure.