Enum flatpak_rs::source::FlatpakSourceItem
source · [−]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
sourceimpl Clone for FlatpakSourceItem
impl Clone for FlatpakSourceItem
sourcefn clone(&self) -> FlatpakSourceItem
fn clone(&self) -> FlatpakSourceItem
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for FlatpakSourceItem
impl Debug for FlatpakSourceItem
sourceimpl<'de> Deserialize<'de> for FlatpakSourceItem
impl<'de> Deserialize<'de> for FlatpakSourceItem
sourcefn 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
sourceimpl Hash for FlatpakSourceItem
impl Hash for FlatpakSourceItem
sourceimpl Serialize for FlatpakSourceItem
impl Serialize for FlatpakSourceItem
Auto Trait Implementations
impl RefUnwindSafe for FlatpakSourceItem
impl Send for FlatpakSourceItem
impl Sync for FlatpakSourceItem
impl Unpin for FlatpakSourceItem
impl UnwindSafe for FlatpakSourceItem
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more