Trait rawr::traits::Reportable [] [src]

pub trait Reportable {
    fn report(&self, reason: &str) -> Result<(), APIError>;
    fn report_count(&self) -> Option<u64>;
}

An object that can be reported (submission, comment, private message). Also exposes moderation options to review reports.

Required Methods

fn report(&self, reason: &str) -> Result<(), APIError>

Reports the object for the specified reason (must be less than 100 characters).

fn report_count(&self) -> Option<u64>

Gets the number of reports for this post. If you do not have the rights to view this value, this will return None.

Implementors