pub struct ReleaseInfo {
pub name: String,
pub namespace: String,
pub revision: u32,
pub is_install: bool,
pub is_upgrade: bool,
pub service: String,
}Expand description
Release information for templates
Fields§
§name: StringRelease name
namespace: StringTarget namespace
revision: u32Revision number
is_install: boolIs this an install operation?
is_upgrade: boolIs this an upgrade operation?
service: StringService (always “Sherpack”)
Implementations§
Source§impl ReleaseInfo
impl ReleaseInfo
Sourcepub fn for_install(name: &str, namespace: &str) -> Self
pub fn for_install(name: &str, namespace: &str) -> Self
Create release info for a new install
Sourcepub fn for_upgrade(name: &str, namespace: &str, revision: u32) -> Self
pub fn for_upgrade(name: &str, namespace: &str, revision: u32) -> Self
Create release info for an upgrade
Trait Implementations§
Source§impl Clone for ReleaseInfo
impl Clone for ReleaseInfo
Source§fn clone(&self) -> ReleaseInfo
fn clone(&self) -> ReleaseInfo
Returns a duplicate of the value. Read more
1.0.0 · 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 ReleaseInfo
impl Debug for ReleaseInfo
Source§impl<'de> Deserialize<'de> for ReleaseInfo
impl<'de> Deserialize<'de> for ReleaseInfo
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 ReleaseInfo
impl RefUnwindSafe for ReleaseInfo
impl Send for ReleaseInfo
impl Sync for ReleaseInfo
impl Unpin for ReleaseInfo
impl UnwindSafe for ReleaseInfo
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