pub enum FlatpakSourceItem {
Path(String),
Description(FlatpakSource),
}
Expand description
The sources are a list pointer to the source code that needs to be extracted into the build directory before the build starts. They can be of several types, distinguished by the type property.
Additionally, the sources list can contain a plain string, which is interpreted as the name of a separate json or yaml file that is read and inserted at this point. The file can contain a single source, or an array of sources.
Variants§
Path(String)
Description(FlatpakSource)
Trait Implementations§
Source§impl Clone for FlatpakSourceItem
impl Clone for FlatpakSourceItem
Source§fn clone(&self) -> FlatpakSourceItem
fn clone(&self) -> FlatpakSourceItem
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 FlatpakSourceItem
impl Debug for FlatpakSourceItem
Source§impl<'de> Deserialize<'de> for FlatpakSourceItem
impl<'de> Deserialize<'de> for FlatpakSourceItem
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 Hash for FlatpakSourceItem
impl Hash for FlatpakSourceItem
Auto Trait Implementations§
impl Freeze for FlatpakSourceItem
impl RefUnwindSafe for FlatpakSourceItem
impl Send for FlatpakSourceItem
impl Sync for FlatpakSourceItem
impl Unpin for FlatpakSourceItem
impl UnwindSafe for FlatpakSourceItem
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