Struct octocrab::current::ListStarredReposBuilder
source · pub struct ListStarredReposBuilder<'octo> { /* private fields */ }
Expand description
A builder pattern struct for listing starred repositories.
Created by CurrentAuthHandler::list_repos_starred_by_authenticated_user
.
Implementations§
source§impl<'octo> ListStarredReposBuilder<'octo>
impl<'octo> ListStarredReposBuilder<'octo>
sourcepub fn sort(self, sort: impl Into<String>) -> Self
pub fn sort(self, sort: impl Into<String>) -> Self
One of created
(when the repository was starred) or updated
(when it was last pushed to).
sourcepub fn direction(self, direction: impl Into<String>) -> Self
pub fn direction(self, direction: impl Into<String>) -> Self
One of asc
(ascending) or desc
(descending).
sourcepub async fn send(self) -> Result<Page<Repository>>
pub async fn send(self) -> Result<Page<Repository>>
Sends the actual request.
Trait Implementations§
Auto Trait Implementations§
impl<'octo> Freeze for ListStarredReposBuilder<'octo>
impl<'octo> !RefUnwindSafe for ListStarredReposBuilder<'octo>
impl<'octo> Send for ListStarredReposBuilder<'octo>
impl<'octo> Sync for ListStarredReposBuilder<'octo>
impl<'octo> Unpin for ListStarredReposBuilder<'octo>
impl<'octo> !UnwindSafe for ListStarredReposBuilder<'octo>
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