pub struct NuGetPackageVersionOptions {
pub sem_ver: Option<f32>,
pub precision: Option<VersionPrecision>,
}Expand description
Settings controlling generated NuGet package versions.
Fields§
§sem_ver: Option<f32>The SemVer generation mode, normally 1 or 2.
precision: Option<VersionPrecision>The number of version components included in the package version.
Implementations§
Source§impl NuGetPackageVersionOptions
impl NuGetPackageVersionOptions
Sourcepub const DEFAULT_PRECISION: VersionPrecision = VersionPrecision::Build
pub const DEFAULT_PRECISION: VersionPrecision = VersionPrecision::Build
The default number of components included in a package version.
Sourcepub fn sem_ver_or_default(&self) -> f32
pub fn sem_ver_or_default(&self) -> f32
Returns the configured SemVer mode, defaulting to 1.
Sourcepub fn precision_or_default(&self) -> VersionPrecision
pub fn precision_or_default(&self) -> VersionPrecision
Returns the configured precision, defaulting to build.
Trait Implementations§
Source§impl Clone for NuGetPackageVersionOptions
impl Clone for NuGetPackageVersionOptions
Source§impl Debug for NuGetPackageVersionOptions
impl Debug for NuGetPackageVersionOptions
Source§impl Default for NuGetPackageVersionOptions
impl Default for NuGetPackageVersionOptions
Source§impl<'de> Deserialize<'de> for NuGetPackageVersionOptions
impl<'de> Deserialize<'de> for NuGetPackageVersionOptions
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 NuGetPackageVersionOptions
impl RefUnwindSafe for NuGetPackageVersionOptions
impl Send for NuGetPackageVersionOptions
impl Sync for NuGetPackageVersionOptions
impl Unpin for NuGetPackageVersionOptions
impl UnsafeUnpin for NuGetPackageVersionOptions
impl UnwindSafe for NuGetPackageVersionOptions
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