pub struct Config {Show 29 fields
pub is_workspace: bool,
pub unstable: Unstable,
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 metadata: Option<MetadataPolicy>,
pub target: Option<String>,
pub rate_limit: RateLimit,
pub certs_source: Option<CertsSource>,
}Fields§
§is_workspace: bool§unstable: Unstable§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>§metadata: Option<MetadataPolicy>§target: Option<String>§rate_limit: RateLimit§certs_source: Option<CertsSource>Implementations§
Source§impl Config
impl Config
pub fn new() -> Self
pub fn from_defaults() -> Self
pub fn update(&mut self, source: &Config)
pub fn unstable(&self) -> &Unstable
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
pub fn metadata(&self) -> MetadataPolicy
pub fn certs_source(&self) -> CertsSource
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more