Struct cargo_release::config::Config
source · [−]pub struct Config {Show 27 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 post_release_commit_message: Option<String>,
pub pre_release_replacements: Option<Vec<Replace>>,
pub post_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: boolallow_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>post_release_commit_message: Option<String>pre_release_replacements: Option<Vec<Replace>>post_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
sourceimpl 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 post_release_commit_message(&self) -> &str
pub fn pre_release_replacements(&self) -> &[Replace]
pub fn post_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
sourceimpl<'de> Deserialize<'de> for Configwhere
Config: Default,
impl<'de> Deserialize<'de> for Configwhere
Config: Default,
sourcefn 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
Auto Trait Implementations
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more