pub struct SnapBaseDiff {
pub build_channels: Option<Vec<String>>,
pub display_name: Option<String>,
pub distro_series_link: Option<Url>,
pub features: Option<Vec<String>>,
pub name: Option<String>,
}Expand description
Representation of the snap_base-diff resource
Fields§
§build_channels: Option<Vec<String>>Source snap channels for builds
A dictionary mapping snap names to channels to use when building snaps that specify this base. The special ‘_byarch’ key may have a mapping of architecture names to mappings of snap names to channels, which if present override the channels declared at the top level when building for those architectures.
display_name: Option<String>Display name
distro_series_link: Option<Url>Distro series
features: Option<Vec<String>>Features supported by this base
A dictionary designating the features supported by the base. Key is the name of a feature, value is a boolean indicating whether the feature is supported or not.
name: Option<String>Name
Implementations§
Source§impl SnapBaseDiff
impl SnapBaseDiff
Sourcepub fn distro_series(&self) -> Option<DistroSeries>
pub fn distro_series(&self) -> Option<DistroSeries>
Distro series
pub fn set_distro_series(&mut self, value: Option<DistroSeries>)
Trait Implementations§
Source§impl Clone for SnapBaseDiff
impl Clone for SnapBaseDiff
Source§fn clone(&self) -> SnapBaseDiff
fn clone(&self) -> SnapBaseDiff
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 SnapBaseDiff
impl Debug for SnapBaseDiff
Source§impl Default for SnapBaseDiff
impl Default for SnapBaseDiff
Source§impl<'de> Deserialize<'de> for SnapBaseDiff
impl<'de> Deserialize<'de> for SnapBaseDiff
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 for SnapBaseDiff
impl PartialEq for SnapBaseDiff
Source§impl Serialize for SnapBaseDiff
impl Serialize for SnapBaseDiff
impl StructuralPartialEq for SnapBaseDiff
Auto Trait Implementations§
impl Freeze for SnapBaseDiff
impl RefUnwindSafe for SnapBaseDiff
impl Send for SnapBaseDiff
impl Sync for SnapBaseDiff
impl Unpin for SnapBaseDiff
impl UnwindSafe for SnapBaseDiff
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