pub enum ArtifactUpload {
Put {
upload_id: Uuid,
url: String,
headers: HashMap<String, String>,
expires_at: DateTime<Utc>,
},
Multipart,
}Expand description
Answer to POST /tasks/{task_id}/artifacts/uploads. Lives alongside the
hand-rolled call until the endpoint is added to spec/openapi.yaml and
the type can be regenerated under crate::api::types.
Variants§
Put
Upload straight to storage with put_presigned_upload, then call
TaskFastClient::complete_artifact_upload.
Fields
Multipart
The server stores uploads itself (development’s Local adapter): use
TaskFastClient::upload_artifact.
Trait Implementations§
Source§impl Clone for ArtifactUpload
impl Clone for ArtifactUpload
Source§impl Debug for ArtifactUpload
impl Debug for ArtifactUpload
Source§impl<'de> Deserialize<'de> for ArtifactUpload
impl<'de> Deserialize<'de> for ArtifactUpload
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
Auto 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