[][src]Struct modio::mods::ModRef

pub struct ModRef { /* fields omitted */ }

Reference interface of a mod.

Implementations

impl ModRef[src]

pub async fn get(self) -> Result<Mod>[src]

Get a reference to the Modio mod object that this ModRef refers to.

pub fn files(&self) -> Files[src]

Return a reference to an interface that provides access to the files of a mod.

pub fn file(&self, id: u32) -> FileRef[src]

Return a reference to a file of a mod.

pub fn metadata(&self) -> Metadata[src]

Return a reference to an interface to manage metadata key value pairs of a mod.

pub fn tags(&self) -> Tags[src]

Return a reference to an interface to manage the tags of a mod.

pub fn comments(&self) -> Comments[src]

Return a reference to an interface that provides access to the comments of a mod.

pub fn dependencies(&self) -> Dependencies[src]

Return a reference to an interface to manage the dependencies of a mod.

pub async fn statistics(self) -> Result<Statistics>[src]

Return the statistics for a mod.

pub fn events(self, filter: Filter) -> Query<Event>[src]

Returns a Query interface to retrieve the event log for a mod sorted by latest event first.

See Filters and sorting.

pub fn members(&self) -> Members[src]

Return a reference to an interface to manage team members of a mod.

pub async fn edit(self, options: EditModOptions) -> Result<Editing<Mod>>[src]

Edit details for a mod. [required: token]

pub async fn delete(self) -> Result<()>[src]

Delete a mod. [required: token]

pub async fn add_media(self, options: AddMediaOptions) -> Result<()>[src]

Add new media to a mod. [required: token]

pub async fn delete_media(self, options: DeleteMediaOptions) -> Result<Deletion>[src]

Delete media from a mod. [required: token]

pub async fn rate(self, rating: Rating) -> Result<()>[src]

Submit a positive or negative rating for a mod. [required: token]

pub async fn subscribe(self) -> Result<()>[src]

Subscribe the authenticated user to a mod. [required: token]

pub async fn unsubscribe(self) -> Result<()>[src]

Unsubscribe the authenticated user from a mod. [required: token]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.