pub struct Config {
Show 26 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 metadata: Option<MetadataPolicy>, 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>>§shared_version: Option<SharedVersion>§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>

Implementations§

source§

impl Config

source

pub fn new() -> Self

source

pub fn from_defaults() -> Self

source

pub fn update(&mut self, source: &Config)

source

pub fn allow_branch(&self) -> impl Iterator<Item = &str>

source

pub fn sign_commit(&self) -> bool

source

pub fn sign_tag(&self) -> bool

source

pub fn push_remote(&self) -> &str

source

pub fn registry(&self) -> Option<&str>

source

pub fn release(&self) -> bool

source

pub fn publish(&self) -> bool

source

pub fn verify(&self) -> bool

source

pub fn owners(&self) -> &[String]

source

pub fn push(&self) -> bool

source

pub fn push_options(&self) -> impl Iterator<Item = &str>

source

pub fn shared_version(&self) -> Option<&str>

source

pub fn consolidate_commits(&self) -> bool

source

pub fn pre_release_commit_message(&self) -> &str

source

pub fn pre_release_replacements(&self) -> &[Replace]

source

pub fn pre_release_hook(&self) -> Option<&Command>

source

pub fn tag_message(&self) -> &str

source

pub fn tag_prefix(&self, is_root: bool) -> &str

source

pub fn tag_name(&self) -> &str

source

pub fn tag(&self) -> bool

source

pub fn enable_features(&self) -> &[String]

source

pub fn enable_all_features(&self) -> bool

source

pub fn features(&self) -> Features

source

pub fn dependent_version(&self) -> DependentVersion

source

pub fn metadata(&self) -> MetadataPolicy

Trait Implementations§

source§

impl Clone for Config

source§

fn clone(&self) -> Config

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 Debug for Config

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Default for Config

source§

fn default() -> Config

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

impl<'de> Deserialize<'de> for Config
where Config: Default,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl Serialize for Config

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

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> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

§

impl<T> Instrument for T

§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided [Span], returning an Instrumented wrapper. Read more
§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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,

§

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>,

§

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>,

§

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.
§

impl<T> WithSubscriber for T

§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a [WithDispatch] wrapper. Read more
§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a [WithDispatch] wrapper. Read more
source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,