pub struct GetCommitsBuilder {
pub sha: Option<String>,
pub path: Option<String>,
pub stat: Option<bool>,
pub verification: Option<bool>,
pub files: Option<bool>,
pub page: Option<i64>,
pub limit: Option<i64>,
pub not: Option<String>,
/* private fields */
}
Expand description
Options for getting a list of commits from a repository. All fields are optional.
Fields§
§sha: Option<String>
SHA or branch to start listing commits from (usually the default branch).
path: Option<String>
File path to a file/directory in the repository. If provided, only commits affecting this path will be returned.
stat: Option<bool>
Whether to include the stat
field in the response.
Disable to speed-up the response.
Defaults to true.
NOTE: Commit verification is not implemented yet, so this setting does nothing.
verification: Option<bool>
Whether to include the verification
field in the response.
Disable to speed-up the response.
Defaults to true.
NOTE: Commit verification is not implemented yet, so this setting does nothing.
files: Option<bool>
Whether to include the files
field in the response.
Disable to speed-up the response.
Defaults to true.
NOTE: Commit verification is not implemented yet, so this setting does nothing.
page: Option<i64>
Optional page number of the results to fetch (1-based). Defaults to 1 if not set.
limit: Option<i64>
Optional number of commits to return per page (page-size). Defaults to the maximum your instance allows if not set.
not: Option<String>
Commits that match the given specifier will not be listed.
Implementations§
source§impl GetCommitsBuilder
impl GetCommitsBuilder
sourcepub fn sha(self, sha: impl Into<String>) -> Self
pub fn sha(self, sha: impl Into<String>) -> Self
SHA or branch to start listing commits from (usually the default branch).
sourcepub fn path(self, path: impl Into<String>) -> Self
pub fn path(self, path: impl Into<String>) -> Self
File path to a file/directory in the repository. If provided, only commits affecting this path will be returned.
sourcepub fn stat(self, stat: impl Into<bool>) -> Self
pub fn stat(self, stat: impl Into<bool>) -> Self
Whether to include the stat
field in the response.
Disable to speed-up the response.
Defaults to true.
NOTE: Commit verification is not implemented yet, so this setting does nothing.
sourcepub fn verification(self, verification: impl Into<bool>) -> Self
pub fn verification(self, verification: impl Into<bool>) -> Self
Whether to include the verification
field in the response.
Disable to speed-up the response.
Defaults to true.
NOTE: Commit verification is not implemented yet, so this setting does nothing.
sourcepub fn files(self, files: impl Into<bool>) -> Self
pub fn files(self, files: impl Into<bool>) -> Self
Whether to include the files
field in the response.
Disable to speed-up the response.
Defaults to true.
NOTE: Commit verification is not implemented yet, so this setting does nothing.
sourcepub fn page(self, page: impl Into<i64>) -> Self
pub fn page(self, page: impl Into<i64>) -> Self
Optional page number of the results to fetch (1-based). Defaults to 1 if not set.
Trait Implementations§
source§impl Clone for GetCommitsBuilder
impl Clone for GetCommitsBuilder
source§fn clone(&self) -> GetCommitsBuilder
fn clone(&self) -> GetCommitsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetCommitsBuilder
impl Debug for GetCommitsBuilder
Auto Trait Implementations§
impl Freeze for GetCommitsBuilder
impl RefUnwindSafe for GetCommitsBuilder
impl Send for GetCommitsBuilder
impl Sync for GetCommitsBuilder
impl Unpin for GetCommitsBuilder
impl UnwindSafe for GetCommitsBuilder
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)