pub struct ArtifactDraft {
pub data: Vec<u8>,
pub file_extension: String,
pub preview: Option<Vec<u8>>,
pub model: String,
pub model_id: String,
pub runtime: String,
pub capability: Capability,
pub params: JsonValue,
pub job_id: String,
pub duration_ms: i64,
pub session_id: Option<String>,
}Expand description
Everything needed to store one output. The store fills in the id, path, content hash, preview path, and creation time.
Fields§
§data: Vec<u8>§file_extension: String§preview: Option<Vec<u8>>§model: String§model_id: String§runtime: String§capability: Capability§params: JsonValue§job_id: String§duration_ms: i64§session_id: Option<String>Trait Implementations§
Source§impl Clone for ArtifactDraft
impl Clone for ArtifactDraft
Source§fn clone(&self) -> ArtifactDraft
fn clone(&self) -> ArtifactDraft
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 ArtifactDraft
impl RefUnwindSafe for ArtifactDraft
impl Send for ArtifactDraft
impl Sync for ArtifactDraft
impl Unpin for ArtifactDraft
impl UnsafeUnpin for ArtifactDraft
impl UnwindSafe for ArtifactDraft
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