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,
},
}
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
Convert (GameId, ModId)
to DownloadAction::Primary
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
Convert (GameId, ModId, &'a str)
to DownloadAction::Version
with resolve policy
set to ResolvePolicy::Latest
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
Convert (GameId, ModId, FileId)
to DownloadAction::File
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
Convert (GameId, ModId, String)
to DownloadAction::Version
with resolve policy
set to ResolvePolicy::Latest
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
Convert File
to DownloadAction::FileObj
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
Convert Mod
to DownloadAction::File
or DownloadAction::Primary
if Mod::modfile
is None
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
§impl<T> ServiceExt for T
impl<T> ServiceExt for T
§fn compression(self) -> Compression<Self>where
Self: Sized,
fn compression(self) -> Compression<Self>where
Self: Sized,
Compresses response bodies. Read more
§fn decompression(self) -> Decompression<Self>where
Self: Sized,
fn decompression(self) -> Decompression<Self>where
Self: Sized,
Decompress response bodies. Read more
§fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
fn trace_for_http(self) -> Trace<Self, SharedClassifier<ServerErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using HTTP status codes. Read more
§fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
fn trace_for_grpc(self) -> Trace<Self, SharedClassifier<GrpcErrorsAsFailures>>where
Self: Sized,
High level tracing that classifies responses using gRPC headers. Read more