pub struct AssemblyVersionOptions {
pub version: Option<Version>,
pub precision: Option<VersionPrecision>,
}Expand description
Details of how an assembly version is calculated.
Fields§
§version: Option<Version>The explicit assembly version, with two to four components.
precision: Option<VersionPrecision>The additional precision copied from the calculated file version.
Implementations§
Source§impl AssemblyVersionOptions
impl AssemblyVersionOptions
Sourcepub fn precision_or_default(&self) -> VersionPrecision
pub fn precision_or_default(&self) -> VersionPrecision
Returns the configured precision, defaulting to minor.
Trait Implementations§
Source§impl Clone for AssemblyVersionOptions
impl Clone for AssemblyVersionOptions
Source§fn clone(&self) -> AssemblyVersionOptions
fn clone(&self) -> AssemblyVersionOptions
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 AssemblyVersionOptions
impl Debug for AssemblyVersionOptions
Source§impl Default for AssemblyVersionOptions
impl Default for AssemblyVersionOptions
Source§fn default() -> AssemblyVersionOptions
fn default() -> AssemblyVersionOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for AssemblyVersionOptions
impl<'de> Deserialize<'de> for AssemblyVersionOptions
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
impl Eq for AssemblyVersionOptions
Source§impl PartialEq for AssemblyVersionOptions
impl PartialEq for AssemblyVersionOptions
Auto Trait Implementations§
impl Freeze for AssemblyVersionOptions
impl RefUnwindSafe for AssemblyVersionOptions
impl Send for AssemblyVersionOptions
impl Sync for AssemblyVersionOptions
impl Unpin for AssemblyVersionOptions
impl UnsafeUnpin for AssemblyVersionOptions
impl UnwindSafe for AssemblyVersionOptions
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