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 more