dtantsur / rust-osauth

Asynchronous OpenStack session and authentication for Rust
Apache License 2.0
12 stars 9 forks source link

Expose `PaginatedResource` trait #68

Closed Hirevo closed 1 year ago

Hirevo commented 1 year ago

Hi,

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.