#[non_exhaustive]pub struct SkaffoldVersion {
pub version: String,
pub maintenance_mode_time: Option<Timestamp>,
pub support_expiration_time: Option<Timestamp>,
pub support_end_date: Option<Date>,
/* private fields */
}
Expand description
Details of a supported Skaffold version.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.version: String
Release version number. For example, “1.20.3”.
maintenance_mode_time: Option<Timestamp>
The time at which this version of Skaffold will enter maintenance mode.
support_expiration_time: Option<Timestamp>
The time at which this version of Skaffold will no longer be supported.
support_end_date: Option<Date>
Date when this version is expected to no longer be supported.
Implementations§
Source§impl SkaffoldVersion
impl SkaffoldVersion
pub fn new() -> Self
Sourcepub fn set_version<T: Into<String>>(self, v: T) -> Self
pub fn set_version<T: Into<String>>(self, v: T) -> Self
Sets the value of version.
Sourcepub fn set_maintenance_mode_time<T>(self, v: T) -> Self
pub fn set_maintenance_mode_time<T>(self, v: T) -> Self
Sets the value of maintenance_mode_time.
Sourcepub fn set_or_clear_maintenance_mode_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_maintenance_mode_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of maintenance_mode_time.
Sourcepub fn set_support_expiration_time<T>(self, v: T) -> Self
pub fn set_support_expiration_time<T>(self, v: T) -> Self
Sets the value of support_expiration_time.
Sourcepub fn set_or_clear_support_expiration_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_support_expiration_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of support_expiration_time.
Sourcepub fn set_support_end_date<T>(self, v: T) -> Self
pub fn set_support_end_date<T>(self, v: T) -> Self
Sets the value of support_end_date.
Sourcepub fn set_or_clear_support_end_date<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_support_end_date<T>(self, v: Option<T>) -> Self
Sets or clears the value of support_end_date.
Trait Implementations§
Source§impl Clone for SkaffoldVersion
impl Clone for SkaffoldVersion
Source§fn clone(&self) -> SkaffoldVersion
fn clone(&self) -> SkaffoldVersion
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 SkaffoldVersion
impl Debug for SkaffoldVersion
Source§impl Default for SkaffoldVersion
impl Default for SkaffoldVersion
Source§fn default() -> SkaffoldVersion
fn default() -> SkaffoldVersion
Returns the “default value” for a type. Read more
Source§impl Message for SkaffoldVersion
impl Message for SkaffoldVersion
Source§impl PartialEq for SkaffoldVersion
impl PartialEq for SkaffoldVersion
impl StructuralPartialEq for SkaffoldVersion
Auto Trait Implementations§
impl Freeze for SkaffoldVersion
impl RefUnwindSafe for SkaffoldVersion
impl Send for SkaffoldVersion
impl Sync for SkaffoldVersion
impl Unpin for SkaffoldVersion
impl UnwindSafe for SkaffoldVersion
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