pub struct ChocolateyConfig {Show 29 fields
pub name: Option<String>,
pub ids: Option<Vec<String>>,
pub repository: Option<RepositoryConfig>,
pub package_source_url: Option<String>,
pub owners: Option<String>,
pub title: Option<String>,
pub authors: Option<String>,
pub project_url: Option<String>,
pub url_template: Option<String>,
pub icon_url: Option<String>,
pub copyright: Option<String>,
pub description: Option<String>,
pub license: Option<String>,
pub license_url: Option<String>,
pub require_license_acceptance: Option<bool>,
pub project_source_url: Option<String>,
pub docs_url: Option<String>,
pub bug_tracker_url: Option<String>,
pub tags: Option<Vec<String>>,
pub summary: Option<String>,
pub release_notes: Option<String>,
pub dependencies: Option<Vec<ChocolateyDependency>>,
pub api_key: Option<String>,
pub source_repo: Option<String>,
pub skip: Option<StringOrBool>,
pub use_artifact: Option<String>,
pub amd64_variant: Option<String>,
pub post_publish_poll: Option<PostPublishPollConfig>,
pub republish_in_moderation: Option<StringOrBool>,
}Fields§
§name: Option<String>Override the package name (default: crate name).
ids: Option<Vec<String>>Build IDs filter: only include artifacts whose id is in this list.
repository: Option<RepositoryConfig>Unified project repo config (owner/name). Used to derive
<projectUrl> (the Chocolatey gallery link) and download URLs.
<projectUrl> resolves through project_url: (if set) → derived
https://github.com/{repository.owner}/{repository.name}.
package_source_url: Option<String>URL shown as the package source in the Chocolatey gallery.
owners: Option<String>Package owners (Chocolatey gallery user).
title: Option<String>Package title (default: project name).
Package author(s) displayed in the Chocolatey gallery.
project_url: Option<String>Project homepage URL.
url_template: Option<String>Custom URL template for download URLs (overrides release URL).
icon_url: Option<String>URL to the package icon image shown in the Chocolatey gallery.
copyright: Option<String>Copyright notice.
description: Option<String>Package description (supports markdown).
license: Option<String>SPDX license identifier (e.g., “MIT”, “Apache-2.0”).
license_url: Option<String>Optional explicit license URL. Falls back to
https://opensource.org/licenses/<license> when not set.
require_license_acceptance: Option<bool>Require license acceptance before install.
project_source_url: Option<String>Source code project URL.
docs_url: Option<String>Documentation URL.
bug_tracker_url: Option<String>Bug tracker URL.
Tags for the Chocolatey gallery (joined with single spaces in the emitted nuspec). Always a typed list — the legacy space-separated-string form was dropped now for IDE-completion friendliness and to remove whitespace ambiguity.
summary: Option<String>Short summary of the package.
release_notes: Option<String>Release notes for this version.
dependencies: Option<Vec<ChocolateyDependency>>Package dependencies with optional version constraints.
api_key: Option<String>Chocolatey API key for choco push. Falls back to CHOCOLATEY_API_KEY env var.
source_repo: Option<String>Push source URL (default: “https://push.chocolatey.org/”).
skip: Option<StringOrBool>Skip pushing to the Chocolatey community repository. Bool, string, or
template expression (e.g. "{{ .IsSnapshot }}"). Accepts the legacy
skip_publish: spelling for back-compat with configs;
canonical name is skip: to align with every other publisher.
use_artifact: Option<String>Artifact selection: “archive” (default), “msi”, or “nsis”.
amd64_variant: Option<String>amd64 microarchitecture variant filter (e.g. “v1”, “v2”, “v3”, “v4”). Only artifacts matching this variant are included. Default: “v1”.
post_publish_poll: Option<PostPublishPollConfig>Post-publish moderation-queue polling settings. When unset, polling
runs with defaults (enabled, 30s interval, 30m timeout). Polling can
be disabled globally via --no-post-publish-poll.
republish_in_moderation: Option<StringOrBool>When true, re-push the nupkg even when a version is already in the community moderation queue (PackageStatus=Submitted). Chocolatey’s API accepts re-pushes of in-moderation versions; the new nupkg replaces the queued one. When false (default), the push is skipped and a warning is emitted so the operator sees that the publisher did not push.
Trait Implementations§
Source§impl Clone for ChocolateyConfig
impl Clone for ChocolateyConfig
Source§fn clone(&self) -> ChocolateyConfig
fn clone(&self) -> ChocolateyConfig
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 ChocolateyConfig
impl Debug for ChocolateyConfig
Source§impl Default for ChocolateyConfig
impl Default for ChocolateyConfig
Source§fn default() -> ChocolateyConfig
fn default() -> ChocolateyConfig
Source§impl<'de> Deserialize<'de> for ChocolateyConfigwhere
ChocolateyConfig: Default,
impl<'de> Deserialize<'de> for ChocolateyConfigwhere
ChocolateyConfig: 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 ChocolateyConfig
impl JsonSchema for ChocolateyConfig
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