pub struct UploadConfig {Show 20 fields
pub name: Option<String>,
pub ids: Option<Vec<String>>,
pub exts: Option<Vec<String>>,
pub target: String,
pub username: Option<String>,
pub password: Option<String>,
pub method: Option<String>,
pub mode: Option<String>,
pub checksum_header: Option<String>,
pub trusted_certificates: Option<String>,
pub client_x509_cert: Option<String>,
pub client_x509_key: Option<String>,
pub checksum: Option<bool>,
pub signature: Option<bool>,
pub meta: Option<bool>,
pub custom_headers: Option<HashMap<String, String>>,
pub custom_artifact_name: Option<bool>,
pub extra_files: Option<Vec<ExtraFileSpec>>,
pub extra_files_only: Option<bool>,
pub skip: Option<StringOrBool>,
}Fields§
§name: Option<String>Human-readable name for this upload config.
ids: Option<Vec<String>>Build IDs filter: only upload artifacts whose id is in this list.
exts: Option<Vec<String>>File extension filter: only upload artifacts with these extensions.
target: StringTarget URL template (supports template variables like {{ .ProjectName }}, {{ .Version }}).
username: Option<String>Username for HTTP basic auth.
Resolution order: rendered username template → env UPLOAD_{NAME}_USERNAME.
Set this to a literal value or a {{ .Env.X }} template.
password: Option<String>Password for HTTP basic auth.
Strongly prefer {{ .Env.UPLOAD_PASSWORD }} (or any other env-var
template) over an in-config literal — plaintext values here are NOT
redacted from dry-run output and will land in dist/config.yaml
when the pipeline runs with --dry-run / --snapshot. Resolution
order: rendered password template → env UPLOAD_{NAME}_SECRET.
Mirrors GoReleaser’s Upload.Password cascade.
method: Option<String>HTTP method: PUT or POST (default: PUT).
mode: Option<String>Upload mode: “archive” (default) or “binary”.
checksum_header: Option<String>Header name for the SHA256 checksum of the artifact.
trusted_certificates: Option<String>Path to PEM-encoded trusted CA certificates.
client_x509_cert: Option<String>Path to PEM-encoded client X.509 certificate for mTLS.
client_x509_key: Option<String>Path to PEM-encoded client X.509 key for mTLS.
checksum: Option<bool>Include checksums in uploaded artifacts.
signature: Option<bool>Include signatures in uploaded artifacts.
meta: Option<bool>Include metadata artifacts in uploaded artifacts.
custom_headers: Option<HashMap<String, String>>Custom HTTP headers (each value is template-expanded).
custom_artifact_name: Option<bool>When true, use the artifact name as-is (don’t append to target URL).
extra_files: Option<Vec<ExtraFileSpec>>Extra files to include in uploading.
extra_files_only: Option<bool>Upload only extra files, skip normal artifacts.
skip: Option<StringOrBool>Skip condition template (if rendered to “true”, skip this upload).
Trait Implementations§
Source§impl Clone for UploadConfig
impl Clone for UploadConfig
Source§fn clone(&self) -> UploadConfig
fn clone(&self) -> UploadConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for UploadConfig
impl Debug for UploadConfig
Source§impl Default for UploadConfig
impl Default for UploadConfig
Source§fn default() -> UploadConfig
fn default() -> UploadConfig
Source§impl<'de> Deserialize<'de> for UploadConfigwhere
UploadConfig: Default,
impl<'de> Deserialize<'de> for UploadConfigwhere
UploadConfig: Default,
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>,
Source§impl JsonSchema for UploadConfig
impl JsonSchema for UploadConfig
Source§fn schema_name() -> String
fn schema_name() -> String
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more