pub struct CreateReport {
pub category: ReportCategory,
pub reason: Uuid,
pub object_id: Uuid,
pub details: Option<String>,
/* private fields */
}
Fields§
§category: ReportCategory
§reason: Uuid
The report reason ID for sub-categorization.
For example, if a manga was being reported for being a troll entry, the specific reason ID should be used, obtained from the list report reasons endpoint.
object_id: Uuid
The ID from the category type.
For example, if the category is “manga”, this should be a manga UUID.
details: Option<String>
Optional notes about why this is being reported.
Implementations§
Trait Implementations§
Source§impl Clone for CreateReport
impl Clone for CreateReport
Source§fn clone(&self) -> CreateReport
fn clone(&self) -> CreateReport
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for CreateReport
impl Debug for CreateReport
Auto Trait Implementations§
impl Freeze for CreateReport
impl !RefUnwindSafe for CreateReport
impl !Send for CreateReport
impl !Sync for CreateReport
impl Unpin for CreateReport
impl !UnwindSafe for CreateReport
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