#[non_exhaustive]pub enum ArtifactKind {
Show 14 variants
Dependencies,
BuildOutput,
Cache,
VirtualEnv,
IdeArtifacts,
TestOutput,
Logs,
Temporary,
LockFile,
Docker,
PackageManagerCache,
Bytecode,
DocsBuild,
Custom(u32),
}Expand description
Classification of artifact types
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dependencies
Package dependencies (node_modules, vendor, etc.)
BuildOutput
Build outputs (target, dist, build, etc.)
Cache
Cache directories (.cache, pycache, etc.)
VirtualEnv
Virtual environments (.venv, venv, etc.)
IdeArtifacts
IDE/editor artifacts (.idea, .vscode local, etc.)
TestOutput
Test outputs (coverage, .nyc_output, etc.)
Logs
Log files
Temporary
Temporary files
LockFile
Lock files (generally should NOT delete)
Docker
Docker-related (dangling images, build cache)
PackageManagerCache
Package manager cache (npm cache, pip cache)
Bytecode
Compiled bytecode (.pyc files, .class files)
DocsBuild
Documentation builds
Custom(u32)
Custom plugin-defined artifact
Implementations§
Source§impl ArtifactKind
impl ArtifactKind
Sourcepub fn default_safety(&self) -> ArtifactSafety
pub fn default_safety(&self) -> ArtifactSafety
Default safety level for this artifact type
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Human-readable description
Sourcepub fn all() -> &'static [ArtifactKind]
pub fn all() -> &'static [ArtifactKind]
Get all standard artifact kinds
Trait Implementations§
Source§impl Clone for ArtifactKind
impl Clone for ArtifactKind
Source§fn clone(&self) -> ArtifactKind
fn clone(&self) -> ArtifactKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ArtifactKind
impl Debug for ArtifactKind
Source§impl<'de> Deserialize<'de> for ArtifactKind
impl<'de> Deserialize<'de> for ArtifactKind
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for ArtifactKind
impl Hash for ArtifactKind
Source§impl PartialEq for ArtifactKind
impl PartialEq for ArtifactKind
Source§impl Serialize for ArtifactKind
impl Serialize for ArtifactKind
impl Copy for ArtifactKind
impl Eq for ArtifactKind
impl StructuralPartialEq for ArtifactKind
Auto Trait Implementations§
impl Freeze for ArtifactKind
impl RefUnwindSafe for ArtifactKind
impl Send for ArtifactKind
impl Sync for ArtifactKind
impl Unpin for ArtifactKind
impl UnwindSafe for ArtifactKind
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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