Skip to main content

ChocolateyConfig

Struct ChocolateyConfig 

Source
pub struct ChocolateyConfig {
Show 22 fields pub name: Option<String>, pub id: Option<String>, pub title: Option<String>, pub authors: Option<String>, pub description: Option<String>, pub summary: Option<String>, pub project_url: Option<String>, pub license_url: Option<String>, pub icon_url: Option<String>, pub package_source_url: Option<String>, pub docs_url: Option<String>, pub bug_tracker_url: Option<String>, pub project_source_url: Option<String>, pub tags: Option<String>, pub release_notes_url: Option<String>, pub download_repo: String, pub archive_pattern: String, pub push: ChocolateyPushConfig, pub nix_tool: String, pub api_key_env: String, pub api_key_secret: String, pub api_key_from_runner: bool,
}

Fields§

§name: Option<String>

Chocolatey package display name; if omitted, derived from Cargo package name.

§id: Option<String>

Nuspec package identifier; if omitted, derived from the resolved name.

§title: Option<String>

Nuspec title; if omitted, derived from the resolved name.

§authors: Option<String>

Nuspec authors. If omitted, derived from Cargo package authors when available.

§description: Option<String>

Nuspec description. If omitted, derived from Cargo metadata.

§summary: Option<String>

Nuspec summary.

§project_url: Option<String>

Project URL. If omitted, derived from Cargo package homepage.

§license_url: Option<String>

License URL.

§icon_url: Option<String>

Package icon URL.

§package_source_url: Option<String>

URL for the package source.

§docs_url: Option<String>

Documentation URL.

§bug_tracker_url: Option<String>

Bug tracker URL.

§project_source_url: Option<String>

Project source URL.

§tags: Option<String>

Space-separated Chocolatey tags.

§release_notes_url: Option<String>

Release notes URL.

§download_repo: String

Codeberg/GitHub <owner>/<repo> for release downloads.

§archive_pattern: String

Archive filename pattern with {name}, {version}, {arch}.

§push: ChocolateyPushConfig

Chocolatey push settings.

§nix_tool: String

nix shell packages providing choco (and simit) for the generated release step. Lets a project point at a fork that already ships the chocolatey package — e.g. github:caniko/nixpkgs/add-chocolatey-scoop#chocolatey github:caniko/simit — until it lands in upstream nixpkgs. Defaults to nixpkgs#chocolatey.

§api_key_env: String

Env var the publish step reads the push API key from (passed to --api-key-env). Defaults to CHOCOLATEY_API_KEY.

§api_key_secret: String

Actions secret sourced into api_key_env. Defaults to chocolatey_api_key. Ignored when api_key_from_runner is true.

§api_key_from_runner: bool

When true, do not source the key from an Actions secret — assume the forge runner already provides api_key_env in the job environment (e.g. a Forgejo runner credential exposed as a container env var).

Trait Implementations§

Source§

impl Clone for ChocolateyConfig

Source§

fn clone(&self) -> ChocolateyConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ChocolateyConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for ChocolateyConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Eq for ChocolateyConfig

Source§

impl PartialEq for ChocolateyConfig

Source§

fn eq(&self, other: &ChocolateyConfig) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for ChocolateyConfig

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.