pub struct ArtifactOutput {
pub pattern: String,
pub content_type: Option<String>,
}Expand description
A file the step promises to produce.
pattern is a glob resolved against the step’s working directory. When the
step succeeds and the pattern matches nothing, the step fails with
MissingArtifact: a declared
output that never appeared is a broken contract.
§Examples
use ironflow_engine::config::ArtifactOutput;
let output = ArtifactOutput::new("target/report.html");
assert_eq!(output.pattern, "target/report.html");
assert!(output.content_type.is_none());Fields§
§pattern: StringGlob pattern, relative to the step’s working directory.
content_type: Option<String>MIME type to record. Guessed from the file name when absent.
Implementations§
Trait Implementations§
Source§impl Clone for ArtifactOutput
impl Clone for ArtifactOutput
Source§fn clone(&self) -> ArtifactOutput
fn clone(&self) -> ArtifactOutput
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ArtifactOutput
impl Debug for ArtifactOutput
Source§impl<'de> Deserialize<'de> for ArtifactOutput
impl<'de> Deserialize<'de> for ArtifactOutput
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
impl Eq for ArtifactOutput
Source§impl PartialEq for ArtifactOutput
impl PartialEq for ArtifactOutput
Source§impl Serialize for ArtifactOutput
impl Serialize for ArtifactOutput
impl StructuralPartialEq for ArtifactOutput
Auto Trait Implementations§
impl Freeze for ArtifactOutput
impl RefUnwindSafe for ArtifactOutput
impl Send for ArtifactOutput
impl Sync for ArtifactOutput
impl Unpin for ArtifactOutput
impl UnsafeUnpin for ArtifactOutput
impl UnwindSafe for ArtifactOutput
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.