pub struct ReposListForAuthenticatedUserParams<'req> { /* private fields */ }Expand description
Query parameters for the List repositories for the authenticated user endpoint.
Implementations§
Source§impl<'req> ReposListForAuthenticatedUserParams<'req>
impl<'req> ReposListForAuthenticatedUserParams<'req>
pub fn new() -> Self
Sourcepub fn visibility(self, visibility: &'req str) -> Self
pub fn visibility(self, visibility: &'req str) -> Self
Limit results to repositories with the specified visibility.
Sourcepub fn affiliation(self, affiliation: &'req str) -> Self
pub fn affiliation(self, affiliation: &'req str) -> 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: &'req str) -> Self
pub fn _type(self, _type: &'req str) -> Self
Limit results to repositories of the specified type. Will cause a 422 error if used in the same request as visibility or affiliation.
Sourcepub fn direction(self, direction: &'req str) -> Self
pub fn direction(self, direction: &'req str) -> Self
The order to sort by. Default: asc when using full_name, otherwise desc.
Sourcepub fn per_page(self, per_page: u16) -> Self
pub fn per_page(self, per_page: u16) -> Self
The number of results per page (max 100). For more information, see "Using pagination in the REST API."
Sourcepub fn page(self, page: u16) -> Self
pub fn page(self, page: u16) -> Self
The page number of the results to fetch. For more information, see "Using pagination in the REST API."