pub struct ModRef { /* private fields */ }
Expand description
Reference interface of a mod.
Implementations§
source§impl ModRef
impl ModRef
sourcepub async fn get(self) -> Result<Mod>
pub async fn get(self) -> Result<Mod>
Get a reference to the Modio mod object that this ModRef
refers to.
sourcepub fn files(&self) -> Files
pub fn files(&self) -> Files
Return a reference to an interface that provides access to the files of a mod.
sourcepub fn metadata(&self) -> Metadata
pub fn metadata(&self) -> Metadata
Return a reference to an interface to manage metadata key value pairs of a mod.
Return a reference to an interface to manage the tags of a mod.
sourcepub fn comments(&self) -> Comments
pub fn comments(&self) -> Comments
Return a reference to an interface that provides access to the comments of a mod.
sourcepub fn dependencies(&self) -> Dependencies
pub fn dependencies(&self) -> Dependencies
Return a reference to an interface to manage the dependencies of a mod.
sourcepub async fn statistics(self) -> Result<Statistics>
pub async fn statistics(self) -> Result<Statistics>
Return the statistics for a mod.
sourcepub fn events(self, filter: Filter) -> Query<Event>
pub fn events(self, filter: Filter) -> Query<Event>
Returns a Query
interface to retrieve the event log for a mod sorted by latest event first.
See Filters and sorting.
sourcepub fn members(&self) -> Members
pub fn members(&self) -> Members
Return a reference to an interface to manage team members of a mod.
sourcepub async fn edit(self, options: EditModOptions) -> Result<Editing<Mod>>
pub async fn edit(self, options: EditModOptions) -> Result<Editing<Mod>>
Edit details for a mod. [required: token]
sourcepub async fn add_media(self, options: AddMediaOptions) -> Result<()>
pub async fn add_media(self, options: AddMediaOptions) -> Result<()>
Add new media to a mod. [required: token]
sourcepub async fn delete_media(self, options: DeleteMediaOptions) -> Result<Deletion>
pub async fn delete_media(self, options: DeleteMediaOptions) -> Result<Deletion>
Delete media from a mod. [required: token]
sourcepub async fn reorder_media(self, options: ReorderMediaOptions) -> Result<()>
pub async fn reorder_media(self, options: ReorderMediaOptions) -> Result<()>
Reorder images, sketchfab or youtube links from a mod profile. [required: token]
sourcepub async fn rate(self, rating: Rating) -> Result<()>
pub async fn rate(self, rating: Rating) -> Result<()>
Submit a positive or negative rating for a mod. [required: token]
sourcepub async fn subscribe(self) -> Result<()>
pub async fn subscribe(self) -> Result<()>
Subscribe the authenticated user to a mod. [required: token]
sourcepub async fn unsubscribe(self) -> Result<()>
pub async fn unsubscribe(self) -> Result<()>
Unsubscribe the authenticated user from a mod. [required: token]