pub struct PartConfig {
pub name: String,
pub first_value: Option<String>,
pub optional_value: Option<String>,
pub values: Vec<String>,
}Expand description
Per-version-part configuration, parsed from a [bumpversion:part:NAME]
section.
Fields§
§name: StringName of the version component (e.g. "major", "stage").
first_value: Option<String>First value the part takes after being reset.
optional_value: Option<String>The “invisible” value that is omitted from the serialised version.
values: Vec<String>Ordered list of string values that the part cycles through.
Trait Implementations§
Source§impl Clone for PartConfig
impl Clone for PartConfig
Source§fn clone(&self) -> PartConfig
fn clone(&self) -> PartConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PartConfig
impl Debug for PartConfig
Source§impl PartialEq for PartConfig
impl PartialEq for PartConfig
impl StructuralPartialEq for PartConfig
Auto Trait Implementations§
impl Freeze for PartConfig
impl RefUnwindSafe for PartConfig
impl Send for PartConfig
impl Sync for PartConfig
impl Unpin for PartConfig
impl UnsafeUnpin for PartConfig
impl UnwindSafe for PartConfig
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