#[non_exhaustive]pub struct Config {
pub name: String,
pub supported_versions: Vec<SkaffoldVersion>,
pub default_skaffold_version: String,
/* private fields */
}
Expand description
Service-wide configuration.
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.name: String
Name of the configuration.
supported_versions: Vec<SkaffoldVersion>
All supported versions of Skaffold.
default_skaffold_version: String
Default Skaffold version that is assigned when a Release is created without specifying a Skaffold version.
Implementations§
Source§impl Config
impl Config
pub fn new() -> Self
Sourcepub fn set_supported_versions<T, V>(self, v: T) -> Self
pub fn set_supported_versions<T, V>(self, v: T) -> Self
Sets the value of supported_versions.
Sourcepub fn set_default_skaffold_version<T: Into<String>>(self, v: T) -> Self
pub fn set_default_skaffold_version<T: Into<String>>(self, v: T) -> Self
Sets the value of default_skaffold_version.
Trait Implementations§
impl StructuralPartialEq for Config
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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