pub struct ShepherdVersionTag(/* private fields */);Implementations§
Source§impl ShepherdVersionTag
impl ShepherdVersionTag
Sourcepub const fn with_major_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_major_checked(self, value: u8) -> Result<Self, ()>
The version tag deployed
Units: major.minor.patch
Bits: 0..8
Sourcepub const fn with_major(self, value: u8) -> Self
pub const fn with_major(self, value: u8) -> Self
The version tag deployed
Units: major.minor.patch
Bits: 0..8
Sourcepub const fn set_major(&mut self, value: u8)
pub const fn set_major(&mut self, value: u8)
The version tag deployed
Units: major.minor.patch
Bits: 0..8
Sourcepub const fn set_major_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_major_checked(&mut self, value: u8) -> Result<(), ()>
The version tag deployed
Units: major.minor.patch
Bits: 0..8
Sourcepub const fn with_minor_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_minor_checked(self, value: u8) -> Result<Self, ()>
The version tag deployed
Units: major.minor.patch
Bits: 8..16
Sourcepub const fn with_minor(self, value: u8) -> Self
pub const fn with_minor(self, value: u8) -> Self
The version tag deployed
Units: major.minor.patch
Bits: 8..16
Sourcepub const fn set_minor(&mut self, value: u8)
pub const fn set_minor(&mut self, value: u8)
The version tag deployed
Units: major.minor.patch
Bits: 8..16
Sourcepub const fn set_minor_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_minor_checked(&mut self, value: u8) -> Result<(), ()>
The version tag deployed
Units: major.minor.patch
Bits: 8..16
Sourcepub const fn with_patch_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_patch_checked(self, value: u8) -> Result<Self, ()>
The version tag deployed
Units: major.minor.patch
Bits: 16..24
Sourcepub const fn with_patch(self, value: u8) -> Self
pub const fn with_patch(self, value: u8) -> Self
The version tag deployed
Units: major.minor.patch
Bits: 16..24
Sourcepub const fn set_patch(&mut self, value: u8)
pub const fn set_patch(&mut self, value: u8)
The version tag deployed
Units: major.minor.patch
Bits: 16..24
Sourcepub const fn set_patch_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_patch_checked(&mut self, value: u8) -> Result<(), ()>
The version tag deployed
Units: major.minor.patch
Bits: 16..24
Sourcepub const fn with_dirty_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_dirty_checked(self, value: u8) -> Result<Self, ()>
Whether the working tree was dirty
Units: bool
Bits: 24..32
Sourcepub const fn with_dirty(self, value: u8) -> Self
pub const fn with_dirty(self, value: u8) -> Self
Whether the working tree was dirty
Units: bool
Bits: 24..32
Sourcepub const fn set_dirty(&mut self, value: u8)
pub const fn set_dirty(&mut self, value: u8)
Whether the working tree was dirty
Units: bool
Bits: 24..32
Sourcepub const fn set_dirty_checked(&mut self, value: u8) -> Result<(), ()>
pub const fn set_dirty_checked(&mut self, value: u8) -> Result<(), ()>
Whether the working tree was dirty
Units: bool
Bits: 24..32
Sourcepub const fn local_commit(&self) -> u8
pub const fn local_commit(&self) -> u8
Whether local-only commits were deployed
Units: bool
Bits: 32..40
Sourcepub const fn with_local_commit_checked(self, value: u8) -> Result<Self, ()>
pub const fn with_local_commit_checked(self, value: u8) -> Result<Self, ()>
Whether local-only commits were deployed
Units: bool
Bits: 32..40
Sourcepub const fn with_local_commit(self, value: u8) -> Self
pub const fn with_local_commit(self, value: u8) -> Self
Whether local-only commits were deployed
Units: bool
Bits: 32..40
Sourcepub const fn set_local_commit(&mut self, value: u8)
pub const fn set_local_commit(&mut self, value: u8)
Whether local-only commits were deployed
Units: bool
Bits: 32..40
Trait Implementations§
Source§impl Clone for ShepherdVersionTag
impl Clone for ShepherdVersionTag
Source§fn clone(&self) -> ShepherdVersionTag
fn clone(&self) -> ShepherdVersionTag
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more