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§
Source§impl Dependency<'_>
impl Dependency<'_>
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> Freeze for Dependency<'a>
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§
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