pub struct FriendsRequestBuilder { /* private fields */ }Expand description
Builder for user.getFriends requests
Implementations§
Source§impl FriendsRequestBuilder
impl FriendsRequestBuilder
Sourcepub const fn limit(self, limit: u32) -> Self
pub const fn limit(self, limit: u32) -> Self
Set the number of results per page (default 50, max 50).
Sourcepub const fn with_recent_tracks(self) -> Self
pub const fn with_recent_tracks(self) -> Self
Include the user’s most recent tracks in the response.
Sourcepub async fn fetch_page(self) -> Result<FriendsPage>
pub async fn fetch_page(self) -> Result<FriendsPage>
Fetch one page of friends.
§Errors
Returns an error if the HTTP request fails or the response cannot be parsed.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FriendsRequestBuilder
impl !RefUnwindSafe for FriendsRequestBuilder
impl Send for FriendsRequestBuilder
impl Sync for FriendsRequestBuilder
impl Unpin for FriendsRequestBuilder
impl UnsafeUnpin for FriendsRequestBuilder
impl !UnwindSafe for FriendsRequestBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more