pub struct PipelineListBuilder<'a> { /* private fields */ }Expand description
Builder for pipeline list operations.
Provides a fluent API for querying pipelines with various filters.
§Examples
use lmrc_gitlab::{GitLabClient, models::PipelineStatus};
let client = GitLabClient::new("https://gitlab.com", "token")?;
// List failed pipelines on main branch
let pipelines = client.pipelines("myorg/myproject")
.status(PipelineStatus::Failed)
.ref_name("main")
.limit(10)
.list()
.await?;Implementations§
Source§impl<'a> PipelineListBuilder<'a>
impl<'a> PipelineListBuilder<'a>
Sourcepub fn status(self, status: PipelineStatus) -> Self
pub fn status(self, status: PipelineStatus) -> Self
Filter pipelines by status.
§Examples
let pipelines = client.pipelines("myorg/myproject")
.status(PipelineStatus::Failed)
.list()
.await?;Sourcepub fn ref_name(self, ref_name: impl Into<String>) -> Self
pub fn ref_name(self, ref_name: impl Into<String>) -> Self
Filter pipelines by git reference (branch or tag).
§Examples
let pipelines = client.pipelines("myorg/myproject")
.ref_name("main")
.list()
.await?;Auto Trait Implementations§
impl<'a> Freeze for PipelineListBuilder<'a>
impl<'a> !RefUnwindSafe for PipelineListBuilder<'a>
impl<'a> Send for PipelineListBuilder<'a>
impl<'a> Sync for PipelineListBuilder<'a>
impl<'a> Unpin for PipelineListBuilder<'a>
impl<'a> !UnwindSafe for PipelineListBuilder<'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