[−][src]Struct modio::mods::ModRef
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
impl !RefUnwindSafe for ModRef
[src]
impl Send for ModRef
[src]
impl Sync for ModRef
[src]
impl Unpin for ModRef
[src]
impl !UnwindSafe for ModRef
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,