#[non_exhaustive]pub struct ChannelConfig {
pub default_version: String,
/* private fields */
}Expand description
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.default_version: StringOutput only. Default version for this release channel, e.g.: “1.4.0”.
Implementations§
Source§impl ChannelConfig
impl ChannelConfig
pub fn new() -> Self
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.
Trait Implementations§
Source§impl Clone for ChannelConfig
impl Clone for ChannelConfig
Source§fn clone(&self) -> ChannelConfig
fn clone(&self) -> ChannelConfig
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 ChannelConfig
impl Debug for ChannelConfig
Source§impl Default for ChannelConfig
impl Default for ChannelConfig
Source§fn default() -> ChannelConfig
fn default() -> ChannelConfig
Returns the “default value” for a type. Read more
Source§impl Message for ChannelConfig
impl Message for ChannelConfig
Source§impl PartialEq for ChannelConfig
impl PartialEq for ChannelConfig
impl StructuralPartialEq for ChannelConfig
Auto Trait Implementations§
impl Freeze for ChannelConfig
impl RefUnwindSafe for ChannelConfig
impl Send for ChannelConfig
impl Sync for ChannelConfig
impl Unpin for ChannelConfig
impl UnwindSafe for ChannelConfig
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