pub struct ArtifactDownloadRequest {
pub job_id: String,
pub artifact_id: String,
pub destination: ProtocolPath,
}Expand description
Request to download one artifact to an explicit client path.
Fields§
§job_id: StringStable provider job identifier.
artifact_id: StringStable artifact identifier from its manifest.
destination: ProtocolPathAbsolute client destination. Providers must not reinterpret it as a worker path.
Implementations§
Source§impl ArtifactDownloadRequest
impl ArtifactDownloadRequest
Sourcepub fn validate(&self) -> RemoteBuildResult<()>
pub fn validate(&self) -> RemoteBuildResult<()>
Validate identifiers and destination semantics.
§Errors
Returns a typed validation error for invalid IDs or a non-client destination.
Trait Implementations§
Source§impl Clone for ArtifactDownloadRequest
impl Clone for ArtifactDownloadRequest
Source§impl Debug for ArtifactDownloadRequest
impl Debug for ArtifactDownloadRequest
Source§impl<'de> Deserialize<'de> for ArtifactDownloadRequest
impl<'de> Deserialize<'de> for ArtifactDownloadRequest
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 ArtifactDownloadRequest
Source§impl JsonSchema for ArtifactDownloadRequest
impl JsonSchema for ArtifactDownloadRequest
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for ArtifactDownloadRequest
impl PartialEq for ArtifactDownloadRequest
Source§impl Serialize for ArtifactDownloadRequest
impl Serialize for ArtifactDownloadRequest
impl StructuralPartialEq for ArtifactDownloadRequest
Auto Trait Implementations§
impl Freeze for ArtifactDownloadRequest
impl RefUnwindSafe for ArtifactDownloadRequest
impl Send for ArtifactDownloadRequest
impl Sync for ArtifactDownloadRequest
impl Unpin for ArtifactDownloadRequest
impl UnsafeUnpin for ArtifactDownloadRequest
impl UnwindSafe for ArtifactDownloadRequest
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.