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§
Source§impl 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 Freeze for Artifact
impl !RefUnwindSafe for Artifact
impl Send for Artifact
impl !Sync for Artifact
impl Unpin for Artifact
impl !UnwindSafe for Artifact
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