Struct gitlab_runner::artifact::Artifact
source · [−]pub struct Artifact { /* private fields */ }Expand description
An artifact downloaded from gitlab
The artifact holds a set of files which can be read out one by one
Implementations
sourceimpl Artifact
impl Artifact
sourcepub fn file_names(&self) -> impl Iterator<Item = &str>
pub fn file_names(&self) -> impl Iterator<Item = &str>
Iterator of the files names inside the artifacts
The returned file name isn’t sanatized in any way and should not be used as a path on the
filesystem. To get a safe path of a given file use ArtifactFile::path
sourcepub fn file(&mut self, name: &str) -> Option<ArtifactFile<'_>>
pub fn file(&mut self, name: &str) -> Option<ArtifactFile<'_>>
Get a file in the artifact by name
sourcepub fn by_index(&mut self, i: usize) -> Option<ArtifactFile<'_>>
pub fn by_index(&mut self, i: usize) -> Option<ArtifactFile<'_>>
Get a file in the artifact by index
Auto Trait Implementations
impl !RefUnwindSafe for Artifact
impl Send for Artifact
impl !Sync for Artifact
impl Unpin for Artifact
impl !UnwindSafe for Artifact
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