pub enum ModRequest {
Modrinth {
id_or_slug: String,
version: Option<String>,
},
CurseForge {
mod_id: u32,
file_id: Option<u32>,
},
}Expand description
A mod the user asked the launcher to install.
version / file_id are optional pins — if absent, the resolver picks
the latest release compatible with the instance’s MC version + loader.
Variants§
Trait Implementations§
Source§impl Clone for ModRequest
impl Clone for ModRequest
Source§fn clone(&self) -> ModRequest
fn clone(&self) -> ModRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ModRequest
impl Debug for ModRequest
Source§impl From<&ModRequest> for ModKey
impl From<&ModRequest> for ModKey
Source§fn from(req: &ModRequest) -> Self
fn from(req: &ModRequest) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ModRequest
impl RefUnwindSafe for ModRequest
impl Send for ModRequest
impl Sync for ModRequest
impl Unpin for ModRequest
impl UnsafeUnpin for ModRequest
impl UnwindSafe for ModRequest
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