Struct Release

Source
pub struct Release {
    pub command: Option<Command>,
    pub registry: Option<String>,
    pub manifest_path: Option<String>,
    pub version: Option<String>,
    pub config: Option<String>,
    pub token: Option<String>,
    pub backend: Option<Backend>,
}

Fields§

§command: Option<Command>

The release-plz command to run. Accepted values: release-pr, release. (By default it runs both commands).

§registry: Option<String>

Registry where the packages are stored. The registry name needs to be present in the Cargo config. If unspecified, the publish field of the package manifest is used. If the publish field is empty, crates.io is used.

§manifest_path: Option<String>

Path to the Cargo.toml of the project you want to update. Both Cargo workspaces and single packages are supported. (Defaults to the root directory).

§version: Option<String>

Release-plz version to use. E.g. 0.3.70. (Default: latest version).

§config: Option<String>

Release-plz config file location. (Defaults to release-plz.toml or .release-plz.toml).

§token: Option<String>

Token used to publish to the cargo registry.

§backend: Option<Backend>

Forge backend. Valid values: github, gitea. (Defaults to github).

Implementations§

Source§

impl Release

Source

pub fn command(self, value: impl Into<Command>) -> Self

Sets the command field of this struct.

Source

pub fn registry(self, value: impl Into<String>) -> Self

Sets the registry field of this struct.

Source

pub fn manifest_path(self, value: impl Into<String>) -> Self

Sets the manifest_path field of this struct.

Source

pub fn version(self, value: impl Into<String>) -> Self

Sets the version field of this struct.

Source

pub fn config(self, value: impl Into<String>) -> Self

Sets the config field of this struct.

Source

pub fn token(self, value: impl Into<String>) -> Self

Sets the token field of this struct.

Source

pub fn backend(self, value: impl Into<Backend>) -> Self

Sets the backend field of this struct.

Trait Implementations§

Source§

impl Clone for Release

Source§

fn clone(&self) -> Release

Returns a copy of the value. Read more
1.0.0 · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Default for Release

Source§

fn default() -> Release

Returns the “default value” for a type. Read more
Source§

impl From<Release> for Step<Use>

Source§

fn from(value: Release) -> Self

Converts to this type from the input type.

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, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
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> 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.