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
impl Release
Sourcepub fn command(self, value: impl Into<Command>) -> Release
pub fn command(self, value: impl Into<Command>) -> Release
Sets the command
field of this struct.
Sourcepub fn registry(self, value: impl Into<String>) -> Release
pub fn registry(self, value: impl Into<String>) -> Release
Sets the registry
field of this struct.
Sourcepub fn manifest_path(self, value: impl Into<String>) -> Release
pub fn manifest_path(self, value: impl Into<String>) -> Release
Sets the manifest_path
field of this struct.