pub struct ArtifactUpload {
pub run_id: Uuid,
pub step_id: Uuid,
pub name: String,
pub content_type: String,
}Expand description
Everything needed to record an artifact, minus the bytes.
§Examples
use ironflow_engine::artifact::ArtifactUpload;
use uuid::Uuid;
let upload = ArtifactUpload {
run_id: Uuid::now_v7(),
step_id: Uuid::now_v7(),
name: "report.html".to_string(),
content_type: "text/html".to_string(),
};
assert_eq!(upload.name, "report.html");Fields§
§run_id: UuidThe run the artifact belongs to.
step_id: UuidThe step that produced it.
name: StringUser-facing file name, unique within the step.
content_type: StringMIME type to serve on download.
Trait Implementations§
Source§impl Clone for ArtifactUpload
impl Clone for ArtifactUpload
Source§fn clone(&self) -> ArtifactUpload
fn clone(&self) -> ArtifactUpload
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 moreAuto Trait Implementations§
impl Freeze for ArtifactUpload
impl RefUnwindSafe for ArtifactUpload
impl Send for ArtifactUpload
impl Sync for ArtifactUpload
impl Unpin for ArtifactUpload
impl UnsafeUnpin for ArtifactUpload
impl UnwindSafe for ArtifactUpload
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