Struct cargo_release::config::Config
source · pub struct Config {Show 25 fields
pub is_workspace: bool,
pub allow_branch: Option<Vec<String>>,
pub sign_commit: Option<bool>,
pub sign_tag: Option<bool>,
pub push_remote: Option<String>,
pub registry: Option<String>,
pub release: Option<bool>,
pub publish: Option<bool>,
pub verify: Option<bool>,
pub owners: Option<Vec<String>>,
pub push: Option<bool>,
pub push_options: Option<Vec<String>>,
pub shared_version: Option<SharedVersion>,
pub consolidate_commits: Option<bool>,
pub pre_release_commit_message: Option<String>,
pub pre_release_replacements: Option<Vec<Replace>>,
pub pre_release_hook: Option<Command>,
pub tag_message: Option<String>,
pub tag_prefix: Option<String>,
pub tag_name: Option<String>,
pub tag: Option<bool>,
pub enable_features: Option<Vec<String>>,
pub enable_all_features: Option<bool>,
pub dependent_version: Option<DependentVersion>,
pub target: Option<String>,
}Fields§
§is_workspace: bool§allow_branch: Option<Vec<String>>§sign_commit: Option<bool>§sign_tag: Option<bool>§push_remote: Option<String>§registry: Option<String>§release: Option<bool>§publish: Option<bool>§verify: Option<bool>§owners: Option<Vec<String>>§push: Option<bool>§push_options: Option<Vec<String>>§consolidate_commits: Option<bool>§pre_release_commit_message: Option<String>§pre_release_replacements: Option<Vec<Replace>>§pre_release_hook: Option<Command>§tag_message: Option<String>§tag_prefix: Option<String>§tag_name: Option<String>§tag: Option<bool>§enable_features: Option<Vec<String>>§enable_all_features: Option<bool>§dependent_version: Option<DependentVersion>§target: Option<String>Implementations§
source§impl Config
impl Config
pub fn new() -> Self
pub fn from_defaults() -> Self
pub fn update(&mut self, source: &Config)
pub fn allow_branch(&self) -> impl Iterator<Item = &str>
pub fn sign_commit(&self) -> bool
pub fn sign_tag(&self) -> bool
pub fn push_remote(&self) -> &str
pub fn registry(&self) -> Option<&str>
pub fn release(&self) -> bool
pub fn publish(&self) -> bool
pub fn verify(&self) -> bool
pub fn owners(&self) -> &[String]
pub fn push(&self) -> bool
pub fn push_options(&self) -> impl Iterator<Item = &str>
pub fn consolidate_commits(&self) -> bool
pub fn pre_release_commit_message(&self) -> &str
pub fn pre_release_replacements(&self) -> &[Replace]
pub fn pre_release_hook(&self) -> Option<&Command>
pub fn tag_message(&self) -> &str
pub fn tag_prefix(&self, is_root: bool) -> &str
pub fn tag_name(&self) -> &str
pub fn tag(&self) -> bool
pub fn enable_features(&self) -> &[String]
pub fn enable_all_features(&self) -> bool
pub fn features(&self) -> Features
pub fn dependent_version(&self) -> DependentVersion
Trait Implementations§
source§impl<'de> Deserialize<'de> for Configwhere
Config: Default,
impl<'de> Deserialize<'de> for Configwhere
Config: 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>,
Deserialize this value from the given Serde deserializer. Read more