pub struct ProjectVersions {
pub versions: Box<[DependencyInfo]>,
}Expand description
Struct which is used when retrieving mods.
This is from v2 API so maybe its removed in the future.
This struct is also compatible with the following requests:
§API Requests
§1. List project’s versions
GET https://api.modrinth.com/v2/project/{id|slug}/version
§Parameters
-
Path Parameters
- id|slug String (Required)
-
Query Parameters
- loaders: String array
- game_versions: String array
- featured: bool
§2. Get multiple versions
GET https://api.modrinth.com/v2/versions
§Parameters
- ids String array.
§3. Get version from hash
GET https://api.modrinth.com/v2/version_file/{hash}
§Parameters
- hash string (Required)
§More info
https://docs.modrinth.com/api/operations/getprojectversions/ https://docs.modrinth.com/api/operations/getversions/
Fields§
§versions: Box<[DependencyInfo]>Auto Trait Implementations§
impl Freeze for ProjectVersions
impl RefUnwindSafe for ProjectVersions
impl Send for ProjectVersions
impl Sync for ProjectVersions
impl Unpin for ProjectVersions
impl UnwindSafe for ProjectVersions
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more