#[non_exhaustive]pub struct ReleaseChannelConfig {
pub channel: Channel,
pub default_version: String,
pub valid_versions: Vec<String>,
pub upgrade_target_version: String,
/* private fields */
}Expand description
ReleaseChannelConfig exposes configuration for a release channel.
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.channel: ChannelThe release channel this configuration applies to.
default_version: StringThe default version for newly created clusters on the channel.
valid_versions: Vec<String>List of valid versions for the channel.
upgrade_target_version: StringThe auto upgrade target version for clusters on the channel.
Implementations§
Source§impl ReleaseChannelConfig
impl ReleaseChannelConfig
pub fn new() -> Self
Sourcepub fn set_channel<T: Into<Channel>>(self, v: T) -> Self
pub fn set_channel<T: Into<Channel>>(self, v: T) -> Self
Sets the value of channel.
Sourcepub fn set_default_version<T: Into<String>>(self, v: T) -> Self
pub fn set_default_version<T: Into<String>>(self, v: T) -> Self
Sets the value of default_version.
Sourcepub fn set_valid_versions<T, V>(self, v: T) -> Self
pub fn set_valid_versions<T, V>(self, v: T) -> Self
Sets the value of valid_versions.
Sourcepub fn set_upgrade_target_version<T: Into<String>>(self, v: T) -> Self
pub fn set_upgrade_target_version<T: Into<String>>(self, v: T) -> Self
Sets the value of upgrade_target_version.
Trait Implementations§
Source§impl Clone for ReleaseChannelConfig
impl Clone for ReleaseChannelConfig
Source§fn clone(&self) -> ReleaseChannelConfig
fn clone(&self) -> ReleaseChannelConfig
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 ReleaseChannelConfig
impl Debug for ReleaseChannelConfig
Source§impl Default for ReleaseChannelConfig
impl Default for ReleaseChannelConfig
Source§fn default() -> ReleaseChannelConfig
fn default() -> ReleaseChannelConfig
Returns the “default value” for a type. Read more
Source§impl Message for ReleaseChannelConfig
impl Message for ReleaseChannelConfig
Source§impl PartialEq for ReleaseChannelConfig
impl PartialEq for ReleaseChannelConfig
impl StructuralPartialEq for ReleaseChannelConfig
Auto Trait Implementations§
impl Freeze for ReleaseChannelConfig
impl RefUnwindSafe for ReleaseChannelConfig
impl Send for ReleaseChannelConfig
impl Sync for ReleaseChannelConfig
impl Unpin for ReleaseChannelConfig
impl UnwindSafe for ReleaseChannelConfig
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