This PR is made in the context of my other PR (#131) for rust-openstack which aims to move the entire SDK to async/await.
In this endeavour, the SDK needs to be able to implement PaginatedResource on some of its type to allow the use of the ServiceRequestBuilder::fetch_paginated method.
Previously, the stream feature would publicly expose fetch_paginated, but not the trait (PaginatedResource) needed to make use of it, which remained private due to the stream module not marked as pub.
This PR simply adds the missing pub keyword to the stream module declaration, making PaginatedResource publicly accessible (still under the stream feature).
PaginatedResource is the only item to become publicly exposed after this change, so I thought that this would be the way to go.
Hi,
This PR is made in the context of my other PR (#131) for
rust-openstack
which aims to move the entire SDK toasync/await
.In this endeavour, the SDK needs to be able to implement
PaginatedResource
on some of its type to allow the use of theServiceRequestBuilder::fetch_paginated
method.Previously, the
stream
feature would publicly exposefetch_paginated
, but not the trait (PaginatedResource
) needed to make use of it, which remained private due to thestream
module not marked aspub
.This PR simply adds the missing
pub
keyword to thestream
module declaration, makingPaginatedResource
publicly accessible (still under thestream
feature).PaginatedResource
is the only item to become publicly exposed after this change, so I thought that this would be the way to go.