pub struct ListCommitsOptions {
pub sha: Option<String>,
pub path: Option<String>,
pub author: Option<String>,
pub since: Option<String>,
pub until: Option<String>,
pub page: Option<u32>,
pub per_page: Option<u8>,
}Expand description
Options for listing commits in a repository.
Fields§
§sha: Option<String>SHA or branch to start listing commits from.
path: Option<String>Only commits containing this file path will be returned.
GitHub login or email address to filter commits by author.
since: Option<String>Only show commits after this date (ISO 8601 format).
until: Option<String>Only show commits before this date (ISO 8601 format).
page: Option<u32>Page number of results to return.
per_page: Option<u8>Number of results per page (max 100).
Trait Implementations§
Source§impl Clone for ListCommitsOptions
impl Clone for ListCommitsOptions
Source§fn clone(&self) -> ListCommitsOptions
fn clone(&self) -> ListCommitsOptions
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ListCommitsOptions
impl Debug for ListCommitsOptions
Source§impl Default for ListCommitsOptions
impl Default for ListCommitsOptions
Source§fn default() -> ListCommitsOptions
fn default() -> ListCommitsOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ListCommitsOptions
impl RefUnwindSafe for ListCommitsOptions
impl Send for ListCommitsOptions
impl Sync for ListCommitsOptions
impl Unpin for ListCommitsOptions
impl UnwindSafe for ListCommitsOptions
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more