Enum modio::download::DownloadAction
source · pub enum DownloadAction {
Primary {
game_id: GameId,
mod_id: ModId,
},
File {
game_id: GameId,
mod_id: ModId,
file_id: FileId,
},
FileObj(Box<File>),
Version {
game_id: GameId,
mod_id: ModId,
version: String,
policy: ResolvePolicy,
},
}
Expand description
Defines the action that is performed for Modio::download
.
Variants§
Primary
Download the primary modfile of a mod.
File
Download a specific modfile of a mod.
FileObj(Box<File>)
Download a specific modfile.
Version
Download a specific version of a mod.
Trait Implementations§
source§impl Debug for DownloadAction
impl Debug for DownloadAction
source§impl From<(Id<GameMarker>, Id<ModMarker>)> for DownloadAction
impl From<(Id<GameMarker>, Id<ModMarker>)> for DownloadAction
Convert (GameId, ModId)
to DownloadAction::Primary
source§impl<'a> From<(Id<GameMarker>, Id<ModMarker>, &'a str)> for DownloadAction
impl<'a> From<(Id<GameMarker>, Id<ModMarker>, &'a str)> for DownloadAction
Convert (GameId, ModId, &'a str)
to DownloadAction::Version
with resolve policy
set to ResolvePolicy::Latest
source§impl From<(Id<GameMarker>, Id<ModMarker>, Id<FileMarker>)> for DownloadAction
impl From<(Id<GameMarker>, Id<ModMarker>, Id<FileMarker>)> for DownloadAction
Convert (GameId, ModId, FileId)
to DownloadAction::File
source§impl From<(Id<GameMarker>, Id<ModMarker>, String)> for DownloadAction
impl From<(Id<GameMarker>, Id<ModMarker>, String)> for DownloadAction
Convert (GameId, ModId, String)
to DownloadAction::Version
with resolve policy
set to ResolvePolicy::Latest
source§impl From<File> for DownloadAction
impl From<File> for DownloadAction
Convert File
to DownloadAction::FileObj
source§fn from(file: File) -> DownloadAction
fn from(file: File) -> DownloadAction
Converts to this type from the input type.
source§impl From<Mod> for DownloadAction
impl From<Mod> for DownloadAction
Convert Mod
to DownloadAction::File
or DownloadAction::Primary
if Mod::modfile
is None
source§fn from(m: Mod) -> DownloadAction
fn from(m: Mod) -> DownloadAction
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DownloadAction
impl RefUnwindSafe for DownloadAction
impl Send for DownloadAction
impl Sync for DownloadAction
impl Unpin for DownloadAction
impl UnwindSafe for DownloadAction
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