pub struct PutArtifactRequest {
pub execution_id: ExecutionId,
pub step_id: StepId,
pub name: String,
pub artifact_type: ArtifactType,
pub content_type: Option<String>,
pub content: Vec<u8>,
pub metadata: Option<Value>,
}Expand description
Request to store an artifact
Fields§
§execution_id: ExecutionIdExecution that produced this artifact
step_id: StepIdStep that produced this artifact
name: StringName of the artifact
artifact_type: ArtifactTypeType of artifact
content_type: Option<String>Content type (MIME type)
content: Vec<u8>Raw content bytes
metadata: Option<Value>Additional metadata
Implementations§
Source§impl PutArtifactRequest
impl PutArtifactRequest
Sourcepub fn new(
execution_id: ExecutionId,
step_id: StepId,
name: impl Into<String>,
artifact_type: ArtifactType,
content: Vec<u8>,
) -> Self
pub fn new( execution_id: ExecutionId, step_id: StepId, name: impl Into<String>, artifact_type: ArtifactType, content: Vec<u8>, ) -> Self
Create a new put request
Sourcepub fn with_content_type(self, content_type: impl Into<String>) -> Self
pub fn with_content_type(self, content_type: impl Into<String>) -> Self
Set content type
Sourcepub fn with_metadata(self, metadata: Value) -> Self
pub fn with_metadata(self, metadata: Value) -> Self
Set metadata
Trait Implementations§
Source§impl Clone for PutArtifactRequest
impl Clone for PutArtifactRequest
Source§fn clone(&self) -> PutArtifactRequest
fn clone(&self) -> PutArtifactRequest
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 moreAuto Trait Implementations§
impl Freeze for PutArtifactRequest
impl RefUnwindSafe for PutArtifactRequest
impl Send for PutArtifactRequest
impl Sync for PutArtifactRequest
impl Unpin for PutArtifactRequest
impl UnsafeUnpin for PutArtifactRequest
impl UnwindSafe for PutArtifactRequest
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