pub struct Package {Show 13 fields
pub name: Option<String>,
pub full_name: Option<String>,
pub owner: Option<String>,
pub package_url: Option<String>,
pub date_created: OffsetDateTime,
pub date_updated: OffsetDateTime,
pub uuid4: Option<String>,
pub rating_score: Option<u32>,
pub is_pinned: Option<bool>,
pub is_deprecated: Option<bool>,
pub has_nsfw_content: Option<bool>,
pub categories: Vec<String>,
pub versions: Vec<Version>,
}Expand description
Represents a mod package from the Thunderstore API.
This struct contains information about a mod package, including its metadata and all available versions.
Fields§
§name: Option<String>The short name of the package
full_name: Option<String>The full name of the package, typically in format “Owner-Name”
owner: Option<String>The username of the package owner
package_url: Option<String>The URL to the package’s page on Thunderstore
date_created: OffsetDateTimeWhen the package was first published
date_updated: OffsetDateTimeWhen the package was last updated
uuid4: Option<String>Unique identifier for the package
rating_score: Option<u32>User rating score for the package
is_pinned: Option<bool>Whether the package is pinned by Thunderstore
is_deprecated: Option<bool>Whether the package is marked as deprecated
has_nsfw_content: Option<bool>Whether the package contains NSFW content
categories: Vec<String>List of categories the package belongs to
versions: Vec<Version>All available versions of the package
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Package
impl<'de> Deserialize<'de> for Package
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Package
impl RefUnwindSafe for Package
impl Send for Package
impl Sync for Package
impl Unpin for Package
impl UnsafeUnpin for Package
impl UnwindSafe for Package
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