Struct gitlab::api::projects::repository::commits::CommitsBuilder
source · pub struct CommitsBuilder<'a> { /* private fields */ }
Expand description
Builder for Commits
.
Implementations§
source§impl<'a> CommitsBuilder<'a>
impl<'a> CommitsBuilder<'a>
sourcepub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
pub fn project<VALUE: Into<NameOrId<'a>>>(&mut self, value: VALUE) -> &mut Self
The project to get commits from.
sourcepub fn ref_name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn ref_name<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
The ref to get commits from.
If not given, the default branch will be used.
sourcepub fn since(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn since(&mut self, value: DateTime<Utc>) -> &mut Self
Only return commits after a given date.
sourcepub fn until(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn until(&mut self, value: DateTime<Utc>) -> &mut Self
Only return commits before a given date.
sourcepub fn path<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn path<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Only return commits which affect a given path.
Search for commits by commit author.
sourcepub fn all(&mut self, value: bool) -> &mut Self
pub fn all(&mut self, value: bool) -> &mut Self
If true, return every commit from the repository.
sourcepub fn with_stats(&mut self, value: bool) -> &mut Self
pub fn with_stats(&mut self, value: bool) -> &mut Self
Include commit stats in each commit object.
sourcepub fn first_parent(&mut self, value: bool) -> &mut Self
pub fn first_parent(&mut self, value: bool) -> &mut Self
If true, only consider commits in the first parent history.
sourcepub fn order(&mut self, value: CommitsOrder) -> &mut Self
pub fn order(&mut self, value: CommitsOrder) -> &mut Self
If true, only consider commits in the first parent history.
Trait Implementations§
source§impl<'a> Clone for CommitsBuilder<'a>
impl<'a> Clone for CommitsBuilder<'a>
source§fn clone(&self) -> CommitsBuilder<'a>
fn clone(&self) -> CommitsBuilder<'a>
Returns a copy 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 moreAuto Trait Implementations§
impl<'a> Freeze for CommitsBuilder<'a>
impl<'a> RefUnwindSafe for CommitsBuilder<'a>
impl<'a> Send for CommitsBuilder<'a>
impl<'a> Sync for CommitsBuilder<'a>
impl<'a> Unpin for CommitsBuilder<'a>
impl<'a> UnwindSafe for CommitsBuilder<'a>
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> 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