Struct souk::shared::task::FlatpakTask

source ·
pub struct FlatpakTask {
    pub kind: FlatpakTaskKind,
    pub installation: InstallationInfo,
    pub dry_run: bool,
    pub ref_: Optional<String>,
    pub remote: Optional<RemoteInfo>,
    pub path: Optional<String>,
    pub uninstall_before_install: bool,
}

Fields§

§kind: FlatpakTaskKind

The Flatpak operation of this task

§installation: InstallationInfo

The Flatpak installation in which the operation is to be performed.

§dry_run: bool

If true, this task is only simulated and no changes are made to the corresponding installation.

§ref_: Optional<String>

A Flatpak ref. Needed for FlatpakTaskKind::Install operations.

§remote: Optional<RemoteInfo>

A Flatpak remote. Needed for FlatpakTaskKind::Install operations.

§path: Optional<String>

The path of a Flatpak ref file (FlatpakTaskKind::InstallRefFile) or a Flatpak bundle file (FlatpakTaskKind::InstallBundleFile)

§uninstall_before_install: bool

There are cases where it isn’t possible to update an already installed ref directly, and the previously installed ref have to get uninstalled first. This can be the case when a ref gets installed from a different remote, and the GPG keys wouldn’t match for example.

Implementations§

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more
Deserialize this value from the given Serde deserializer. Read more
Feeds this value into the given Hasher. Read more
Feeds a slice of this type into the given Hasher. Read more
This method tests for self and other values to be equal, and is used by ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Serialize this value into the given Serde serializer. Read more
Get the signature for the implementing type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
A DeserializeSeed implementation for this type.
Get a deserializer compatible with this signature.
Get the signature for the implementing type. Read more
Compare self to key and return true if they are equal.

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The none-equivalent value.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more