pub struct ListReposForAuthenticatedUserBuilder<'octo> { /* private fields */ }
Expand description
A builder pattern struct for listing repositories for authenticated user.
Created by CurrentAuthHandler::list_repos_for_authenticated_user
.
Implementations§
source§impl<'octo> ListReposForAuthenticatedUserBuilder<'octo>
impl<'octo> ListReposForAuthenticatedUserBuilder<'octo>
sourcepub fn visibility(self, visibility: impl Into<String>) -> Self
pub fn visibility(self, visibility: impl Into<String>) -> Self
Can be one of all
, public
, or private
. Note: For GitHub AE, can be one of all
, internal
, or private
.
sourcepub fn affiliation(self, affiliation: impl Into<String>) -> Self
pub fn affiliation(self, affiliation: impl Into<String>) -> Self
Comma-separated list of values. Can include:
owner
: Repositories that are owned by the authenticated user.collaborator
: Repositories that the user has been added to as a collaborator.organization_member
: Repositories that the user has access to through being a member of an organization. This includes every repository on every team that the user is on.
sourcepub fn type_(self, type_: impl Into<String>) -> Self
pub fn type_(self, type_: impl Into<String>) -> Self
Can be one of all
, owner
, public
, private
, member
.
Note: For GitHub AE, can be one of all
, owner
, internal
, private
, member
.
sourcepub fn sort(self, sort: impl Into<String>) -> Self
pub fn sort(self, sort: impl Into<String>) -> Self
Can be one of created
, updated
, pushed
, full_name
.
sourcepub fn since(self, since: impl Into<DateTime<Utc>>) -> Self
pub fn since(self, since: impl Into<DateTime<Utc>>) -> Self
Only show notifications updated after the given time.
sourcepub fn before(self, before: impl Into<DateTime<Utc>>) -> Self
pub fn before(self, before: impl Into<DateTime<Utc>>) -> Self
Only show notifications updated before the given time.
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 ListReposForAuthenticatedUserBuilder<'octo>
impl<'octo> !RefUnwindSafe for ListReposForAuthenticatedUserBuilder<'octo>
impl<'octo> Send for ListReposForAuthenticatedUserBuilder<'octo>
impl<'octo> Sync for ListReposForAuthenticatedUserBuilder<'octo>
impl<'octo> Unpin for ListReposForAuthenticatedUserBuilder<'octo>
impl<'octo> !UnwindSafe for ListReposForAuthenticatedUserBuilder<'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