Struct channel_config::ChannelConfigs
source · pub struct ChannelConfigs {
pub default_channel: Option<String>,
pub known_channels: Vec<ChannelConfig>,
}
Expand description
Wrapper for deserializing repository configs to the on-disk JSON format.
Fields§
§default_channel: Option<String>
§known_channels: Vec<ChannelConfig>
Implementations§
source§impl ChannelConfigs
impl ChannelConfigs
pub fn validate(&self) -> Result<(), Error>
pub fn get_default_channel(&self) -> Option<ChannelConfig>
pub fn get_channel(&self, name: &str) -> Option<ChannelConfig>
Trait Implementations§
source§impl Clone for ChannelConfigs
impl Clone for ChannelConfigs
source§fn clone(&self) -> ChannelConfigs
fn clone(&self) -> ChannelConfigs
Returns a copy 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 ChannelConfigs
impl Debug for ChannelConfigs
source§impl<'de> Deserialize<'de> for ChannelConfigs
impl<'de> Deserialize<'de> for ChannelConfigs
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
source§impl PartialEq<ChannelConfigs> for ChannelConfigs
impl PartialEq<ChannelConfigs> for ChannelConfigs
source§fn eq(&self, other: &ChannelConfigs) -> bool
fn eq(&self, other: &ChannelConfigs) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.