Skip to content

Commit 22596fa

Browse files
committed
make cursors into Cows too
1 parent 2f45c2f commit 22596fa

23 files changed

+105
-51
lines changed

src/helix/endpoints/channels/get_vips.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub struct GetVipsRequest<'a> {
5757
pub first: Option<usize>,
5858
/// The cursor used to get the next page of results. The Pagination object in the response contains the cursor’s value. Read more.
5959
#[cfg_attr(feature = "typed-builder", builder(default))]
60-
pub after: Option<helix::Cursor>,
60+
pub after: Option<Cow<'a, helix::CursorRef>>,
6161
}
6262

6363
impl<'a> GetVipsRequest<'a> {
@@ -110,7 +110,9 @@ impl Request for GetVipsRequest<'_> {
110110
}
111111

112112
impl helix::Paginated for GetVipsRequest<'_> {
113-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor; }
113+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
114+
self.after = cursor.map(|c| c.into_cow())
115+
}
114116
}
115117

116118
impl RequestGet for GetVipsRequest<'_> {}

src/helix/endpoints/chat/get_chatters.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ pub struct GetChattersRequest<'a> {
6262
pub first: Option<usize>,
6363
/// The cursor used to get the next page of results. The Pagination object in the response contains the cursor’s value.
6464
#[cfg_attr(feature = "typed-builder", builder(default))]
65-
pub after: Option<helix::Cursor>,
65+
pub after: Option<Cow<'a, helix::CursorRef>>,
6666
}
6767

6868
impl<'a> GetChattersRequest<'a> {
@@ -91,7 +91,9 @@ impl<'a> GetChattersRequest<'a> {
9191
}
9292

9393
impl helix::Paginated for GetChattersRequest<'_> {
94-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
94+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
95+
self.after = cursor.map(|c| c.into_cow())
96+
}
9597
}
9698

9799
/// Return Values for [Get Chatters](super::get_chatters)

src/helix/endpoints/clips/get_clips.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ pub struct GetClipsRequest<'a> {
5959
// one of above is needed.
6060
/// Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. This applies only to queries specifying broadcaster_id or game_id. The cursor value specified here is from the pagination response field of a prior query.
6161
#[cfg_attr(feature = "typed-builder", builder(default))]
62-
pub after: Option<helix::Cursor>,
62+
pub after: Option<Cow<'a, helix::CursorRef>>,
6363
/// Cursor for backward pagination: tells the server where to start fetching the next set of results, in a multi-page response. This applies only to queries specifying broadcaster_id or game_id. The cursor value specified here is from the pagination response field of a prior query.
6464
#[cfg_attr(feature = "typed-builder", builder(default))]
6565
#[serde(borrow)]
66-
pub before: Option<&'a helix::CursorRef>,
66+
pub before: Option<Cow<'a, helix::CursorRef>>,
6767
/// Ending date/time for returned clips, in RFC3339 format. (Note that the seconds value is ignored.) If this is specified, started_at also must be specified; otherwise, the time period is ignored.
6868
#[cfg_attr(feature = "typed-builder", builder(default))]
6969
#[serde(borrow)]
@@ -199,7 +199,9 @@ impl Request for GetClipsRequest<'_> {
199199
impl RequestGet for GetClipsRequest<'_> {}
200200

201201
impl helix::Paginated for GetClipsRequest<'_> {
202-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
202+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
203+
self.after = cursor.map(|c| c.into_cow())
204+
}
203205
}
204206

205207
#[cfg(test)]

src/helix/endpoints/eventsub/get_eventsub_subscriptions.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ pub struct GetEventSubSubscriptionsRequest<'a> {
2727
// FIXME: https://github.com/twitchdev/issues/issues/272
2828
/// Cursor for forward pagination
2929
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
30-
pub after: Option<helix::Cursor>,
30+
pub after: Option<Cow<'a, helix::CursorRef>>,
3131
// FIXME: https://github.com/twitchdev/issues/issues/271
3232
/// Maximum number of objects to return. Maximum: 100. Default: 20.
3333
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
@@ -124,7 +124,9 @@ impl RequestGet for GetEventSubSubscriptionsRequest<'_> {
124124
}
125125

126126
impl helix::Paginated for GetEventSubSubscriptionsRequest<'_> {
127-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
127+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
128+
self.after = cursor.map(|c| c.into_cow())
129+
}
128130
}
129131

130132
#[cfg(test)]

src/helix/endpoints/games/get_top_games.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ use helix::RequestGet;
4848
pub struct GetTopGamesRequest<'a> {
4949
/// Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
5050
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
51-
pub after: Option<helix::Cursor>,
51+
pub after: Option<Cow<'a, helix::CursorRef>>,
5252
/// Cursor for backward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
5353
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
5454
#[serde(borrow)]
55-
pub before: Option<&'a helix::CursorRef>,
55+
pub before: Option<Cow<'a, helix::CursorRef>>,
5656
/// Maximum number of objects to return. Maximum: 100. Default: 20.
5757
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
5858
pub first: Option<usize>,
@@ -82,7 +82,9 @@ impl Request for GetTopGamesRequest<'_> {
8282
impl RequestGet for GetTopGamesRequest<'_> {}
8383

8484
impl helix::Paginated for GetTopGamesRequest<'_> {
85-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
85+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
86+
self.after = cursor.map(|c| c.into_cow())
87+
}
8688
}
8789

8890
#[cfg(test)]

src/helix/endpoints/moderation/get_banned_users.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,11 @@ pub struct GetBannedUsersRequest<'a> {
5555
pub user_id: Cow<'a, [&'a types::UserIdRef]>,
5656
/// Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
5757
#[cfg_attr(feature = "typed-builder", builder(default))]
58-
pub after: Option<helix::Cursor>,
58+
pub after: Option<Cow<'a, helix::CursorRef>>,
5959
/// Cursor for backward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
6060
#[cfg_attr(feature = "typed-builder", builder(default))]
6161
#[serde(borrow)]
62-
pub before: Option<&'a helix::CursorRef>,
62+
pub before: Option<Cow<'a, helix::CursorRef>>,
6363
/// Number of values to be returned per page. Limit: 100. Default: 20.
6464
#[cfg_attr(feature = "typed-builder", builder(setter(into), default))]
6565
pub first: Option<usize>,
@@ -128,7 +128,9 @@ impl Request for GetBannedUsersRequest<'_> {
128128
impl RequestGet for GetBannedUsersRequest<'_> {}
129129

130130
impl helix::Paginated for GetBannedUsersRequest<'_> {
131-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
131+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
132+
self.after = cursor.map(|c| c.into_cow())
133+
}
132134
}
133135

134136
#[cfg(test)]

src/helix/endpoints/moderation/get_blocked_terms.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub struct GetBlockedTerms<'a> {
5757
pub first: Option<u32>,
5858
/// The cursor used to get the next page of results. The Pagination object in the response contains the cursor’s value.
5959
#[cfg_attr(feature = "typed-builder", builder(default))]
60-
pub after: Option<helix::Cursor>,
60+
pub after: Option<Cow<'a, helix::CursorRef>>,
6161
}
6262

6363
impl<'a> GetBlockedTerms<'a> {
@@ -98,7 +98,9 @@ impl Request for GetBlockedTerms<'_> {
9898
impl RequestGet for GetBlockedTerms<'_> {}
9999

100100
impl helix::Paginated for GetBlockedTerms<'_> {
101-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
101+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
102+
self.after = cursor.map(|c| c.into_cow())
103+
}
102104
}
103105

104106
#[cfg(test)]

src/helix/endpoints/moderation/get_moderators.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub struct GetModeratorsRequest<'a> {
5454
pub user_id: Cow<'a, [&'a types::UserIdRef]>,
5555
/// Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
5656
#[cfg_attr(feature = "typed-builder", builder(default))]
57-
pub after: Option<helix::Cursor>,
57+
pub after: Option<Cow<'a, helix::CursorRef>>,
5858
/// Number of values to be returned per page. Limit: 100. Default: 20.
5959
#[cfg_attr(feature = "typed-builder", builder(setter(into), default))]
6060
pub first: Option<usize>,
@@ -110,7 +110,9 @@ impl Request for GetModeratorsRequest<'_> {
110110
impl RequestGet for GetModeratorsRequest<'_> {}
111111

112112
impl helix::Paginated for GetModeratorsRequest<'_> {
113-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
113+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
114+
self.after = cursor.map(|c| c.into_cow())
115+
}
114116
}
115117

116118
#[cfg(test)]

src/helix/endpoints/points/get_custom_reward_redemption.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub struct GetCustomRewardRedemptionRequest<'a> {
6868

6969
/// Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. This applies only to queries without ID. If an ID is specified, it supersedes any cursor/offset combinations. The cursor value specified here is from the pagination response field of a prior query.
7070
#[cfg_attr(feature = "typed-builder", builder(default))]
71-
pub after: Option<helix::Cursor>,
71+
pub after: Option<Cow<'a, helix::CursorRef>>,
7272

7373
/// Number of results to be returned when getting the paginated Custom Reward Redemption objects for a reward. Limit: 50. Default: 20.
7474
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
@@ -174,7 +174,9 @@ impl Request for GetCustomRewardRedemptionRequest<'_> {
174174
impl RequestGet for GetCustomRewardRedemptionRequest<'_> {}
175175

176176
impl helix::Paginated for GetCustomRewardRedemptionRequest<'_> {
177-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
177+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
178+
self.after = cursor.map(|c| c.into_cow())
179+
}
178180
}
179181

180182
#[cfg(test)]

src/helix/endpoints/polls/get_polls.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ pub struct GetPollsRequest<'a> {
5454
pub id: Cow<'a, [&'a types::PollIdRef]>,
5555
/// Cursor for forward pagination
5656
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
57-
pub after: Option<helix::Cursor>,
57+
pub after: Option<Cow<'a, helix::CursorRef>>,
5858
/// Maximum number of objects to return. Maximum: 20. Default: 20.
5959
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
6060
pub first: Option<usize>,
@@ -128,7 +128,9 @@ impl Request for GetPollsRequest<'_> {
128128
impl RequestGet for GetPollsRequest<'_> {}
129129

130130
impl helix::Paginated for GetPollsRequest<'_> {
131-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor; }
131+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
132+
self.after = cursor.map(|c| c.into_cow())
133+
}
132134
}
133135

134136
#[cfg(test)]

src/helix/endpoints/predictions/get_predictions.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ pub struct GetPredictionsRequest<'a> {
5757
pub id: Cow<'a, [&'a types::PredictionIdRef]>,
5858
/// Cursor for forward pagination
5959
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
60-
pub after: Option<helix::Cursor>,
60+
pub after: Option<Cow<'a, helix::CursorRef>>,
6161
/// Maximum number of objects to return. Maximum: 20. Default: 20.
6262
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
6363
pub first: Option<usize>,
@@ -125,7 +125,9 @@ impl Request for GetPredictionsRequest<'_> {
125125
impl RequestGet for GetPredictionsRequest<'_> {}
126126

127127
impl helix::Paginated for GetPredictionsRequest<'_> {
128-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor; }
128+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
129+
self.after = cursor.map(|c| c.into_cow())
130+
}
129131
}
130132

131133
#[cfg(test)]

src/helix/endpoints/schedule/get_channel_stream_schedule.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ pub struct GetChannelStreamScheduleRequest<'a> {
6363
pub utc_offset: Option<Cow<'a, str>>,
6464
/// Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
6565
#[cfg_attr(feature = "typed-builder", builder(default))]
66-
pub after: Option<helix::Cursor>,
66+
pub after: Option<Cow<'a, helix::CursorRef>>,
6767
/// Maximum number of stream segments to return. Maximum: 25. Default: 20.
6868
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
6969
pub first: Option<usize>,
@@ -126,7 +126,9 @@ impl Request for GetChannelStreamScheduleRequest<'_> {
126126
impl RequestGet for GetChannelStreamScheduleRequest<'_> {}
127127

128128
impl helix::Paginated for GetChannelStreamScheduleRequest<'_> {
129-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor; }
129+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
130+
self.after = cursor.map(|c| c.into_cow())
131+
}
130132
}
131133

132134
#[cfg(test)]

src/helix/endpoints/search/search_categories.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ pub struct SearchCategoriesRequest<'a> {
5353
pub query: Cow<'a, str>,
5454
/// Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
5555
#[cfg_attr(feature = "typed-builder", builder(default))]
56-
pub after: Option<helix::Cursor>,
56+
pub after: Option<Cow<'a, helix::CursorRef>>,
5757
/// Cursor for backward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
5858
#[cfg_attr(feature = "typed-builder", builder(default))]
5959
#[serde(borrow)]
60-
pub before: Option<&'a helix::CursorRef>,
60+
pub before: Option<Cow<'a, helix::CursorRef>>,
6161
/// Number of values to be returned per page. Limit: 100. Default: 20.
6262
#[cfg_attr(feature = "typed-builder", builder(setter(into), default))]
6363
pub first: Option<usize>,
@@ -124,7 +124,9 @@ impl RequestGet for SearchCategoriesRequest<'_> {
124124
}
125125

126126
impl helix::Paginated for SearchCategoriesRequest<'_> {
127-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
127+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
128+
self.after = cursor.map(|c| c.into_cow())
129+
}
128130
}
129131

130132
#[cfg(test)]

src/helix/endpoints/search/search_channels.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ pub struct SearchChannelsRequest<'a> {
5353
pub query: Cow<'a, str>,
5454
/// Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
5555
#[cfg_attr(feature = "typed-builder", builder(default))]
56-
pub after: Option<helix::Cursor>,
56+
pub after: Option<Cow<'a, helix::CursorRef>>,
5757
/// Maximum number of objects to return. Maximum: 100 Default: 20
5858
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
5959
// FIXME: No setter because int
@@ -134,7 +134,9 @@ impl Request for SearchChannelsRequest<'_> {
134134
impl RequestGet for SearchChannelsRequest<'_> {}
135135

136136
impl helix::Paginated for SearchChannelsRequest<'_> {
137-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
137+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
138+
self.after = cursor.map(|c| c.into_cow())
139+
}
138140
}
139141

140142
#[cfg(test)]

src/helix/endpoints/streams/get_followed_streams.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ pub struct GetFollowedStreamsRequest<'a> {
4949
pub user_id: Cow<'a, types::UserIdRef>,
5050
/// Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
5151
#[cfg_attr(feature = "typed-builder", builder(default))]
52-
pub after: Option<helix::Cursor>,
52+
pub after: Option<Cow<'a, helix::CursorRef>>,
5353
/// Cursor for backward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
5454
#[cfg_attr(feature = "typed-builder", builder(default))]
5555
#[serde(borrow)]
56-
pub before: Option<&'a helix::CursorRef>,
56+
pub before: Option<Cow<'a, helix::CursorRef>>,
5757
/// Maximum number of objects to return. Maximum: 100. Default: 20.
5858
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
5959
pub first: Option<usize>,
@@ -97,7 +97,9 @@ impl Request for GetFollowedStreamsRequest<'_> {
9797
impl RequestGet for GetFollowedStreamsRequest<'_> {}
9898

9999
impl helix::Paginated for GetFollowedStreamsRequest<'_> {
100-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
100+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
101+
self.after = cursor.map(|c| c.into_cow())
102+
}
101103
}
102104

103105
#[cfg(test)]

src/helix/endpoints/streams/get_streams.rs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ use helix::RequestGet;
5151
pub struct GetStreamsRequest<'a> {
5252
/// Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
5353
#[cfg_attr(feature = "typed-builder", builder(default))]
54-
pub after: Option<helix::Cursor>,
54+
pub after: Option<Cow<'a, helix::CursorRef>>,
5555
/// Cursor for backward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
5656
#[cfg_attr(feature = "typed-builder", builder(default))]
5757
#[serde(borrow)]
58-
pub before: Option<&'a helix::CursorRef>,
58+
pub before: Option<Cow<'a, helix::CursorRef>>,
5959
/// Maximum number of objects to return. Maximum: 100. Default: 20.
6060
#[cfg_attr(feature = "typed-builder", builder(default, setter(into)))]
6161
pub first: Option<usize>,
@@ -174,7 +174,9 @@ impl Request for GetStreamsRequest<'_> {
174174
impl RequestGet for GetStreamsRequest<'_> {}
175175

176176
impl helix::Paginated for GetStreamsRequest<'_> {
177-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
177+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
178+
self.after = cursor.map(|c| c.into_cow())
179+
}
178180
}
179181

180182
#[cfg(test)]

src/helix/endpoints/subscriptions/get_broadcaster_subscriptions.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ pub struct GetBroadcasterSubscriptionsRequest<'a> {
5555
pub user_id: Cow<'a, [&'a types::UserIdRef]>,
5656
/// Cursor for forward pagination: tells the server where to start fetching the next set of results, in a multi-page response. The cursor value specified here is from the pagination response field of a prior query.
5757
#[cfg_attr(feature = "typed-builder", builder(default))]
58-
pub after: Option<helix::Cursor>,
58+
pub after: Option<Cow<'a, helix::CursorRef>>,
5959
/// Number of values to be returned per page. Limit: 100. Default: 20.
6060
#[cfg_attr(feature = "typed-builder", builder(setter(into), default))]
6161
pub first: Option<usize>,
@@ -142,7 +142,9 @@ impl Request for GetBroadcasterSubscriptionsRequest<'_> {
142142
impl RequestGet for GetBroadcasterSubscriptionsRequest<'_> {}
143143

144144
impl helix::Paginated for GetBroadcasterSubscriptionsRequest<'_> {
145-
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) { self.after = cursor }
145+
fn set_pagination(&mut self, cursor: Option<helix::Cursor>) {
146+
self.after = cursor.map(|c| c.into_cow())
147+
}
146148
}
147149

148150
impl helix::Response<GetBroadcasterSubscriptionsRequest<'_>, Vec<BroadcasterSubscription>> {

0 commit comments

Comments
 (0)