Struct gitlab_runner::job::Dependency
source · [−]pub struct Dependency<'a> { /* private fields */ }
Expand description
A dependency of a gitlab job
Dependencies in gitlab are the jobs that had to be run before this job could run.
This can happen either implicitly in the pipeline definition via stages of directly
via needs
keyword
Implementations
sourceimpl<'a> Dependency<'a>
impl<'a> Dependency<'a>
sourcepub fn id(&self) -> u64
pub fn id(&self) -> u64
The id of the dependency
This id matches the job id of the generated this depenency
sourcepub fn name(&self) -> &str
pub fn name(&self) -> &str
The name job that creaof the dependency
This name matches the job name of the job that generated this depenency
sourcepub fn artifact_filename(&self) -> Option<&str>
pub fn artifact_filename(&self) -> Option<&str>
The filename of the dependencies artifact if it has one
sourcepub fn artifact_size(&self) -> Option<usize>
pub fn artifact_size(&self) -> Option<usize>
The size of the dependencies artifact if it has one
Trait Implementations
Auto Trait Implementations
impl<'a> !RefUnwindSafe for Dependency<'a>
impl<'a> Send for Dependency<'a>
impl<'a> Sync for Dependency<'a>
impl<'a> Unpin for Dependency<'a>
impl<'a> !UnwindSafe for Dependency<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more