pub struct PipelinesBuilder<'a> { /* private fields */ }
Expand description
Builder for Pipelines
.
Implementations§
source§impl<'a> PipelinesBuilder<'a>
impl<'a> PipelinesBuilder<'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 query for pipelines.
sourcepub fn scope(&mut self, value: PipelineScope) -> &mut Self
pub fn scope(&mut self, value: PipelineScope) -> &mut Self
Filter pipelines by its scope.
sourcepub fn status(&mut self, value: PipelineStatus) -> &mut Self
pub fn status(&mut self, value: PipelineStatus) -> &mut Self
Filter pipelines by its status.
sourcepub fn ref_<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn ref_<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Filter pipelines by the owning ref.
sourcepub fn sha<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn sha<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Filter pipelines for a given commit SHA.
sourcepub fn yaml_errors(&mut self, value: bool) -> &mut Self
pub fn yaml_errors(&mut self, value: bool) -> &mut Self
Filter pipelines with or without YAML errors.
sourcepub fn username<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
pub fn username<VALUE: Into<Cow<'a, str>>>(&mut self, value: VALUE) -> &mut Self
Filter pipelines by the username of the triggering user.
sourcepub fn order_by(&mut self, value: PipelineOrderBy) -> &mut Self
pub fn order_by(&mut self, value: PipelineOrderBy) -> &mut Self
Order results by a given key.
sourcepub fn updated_before(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn updated_before(&mut self, value: DateTime<Utc>) -> &mut Self
Filter pipelines by the last updated date before this time.
sourcepub fn updated_after(&mut self, value: DateTime<Utc>) -> &mut Self
pub fn updated_after(&mut self, value: DateTime<Utc>) -> &mut Self
Filter pipelines by the last updated date after this time.
sourcepub fn source(&mut self, value: PipelineSource) -> &mut Self
pub fn source(&mut self, value: PipelineSource) -> &mut Self
How the pipeline was triggered.
Trait Implementations§
source§impl<'a> Clone for PipelinesBuilder<'a>
impl<'a> Clone for PipelinesBuilder<'a>
source§fn clone(&self) -> PipelinesBuilder<'a>
fn clone(&self) -> PipelinesBuilder<'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 PipelinesBuilder<'a>
impl<'a> RefUnwindSafe for PipelinesBuilder<'a>
impl<'a> Send for PipelinesBuilder<'a>
impl<'a> Sync for PipelinesBuilder<'a>
impl<'a> Unpin for PipelinesBuilder<'a>
impl<'a> UnwindSafe for PipelinesBuilder<'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