Struct megalodon::megalodon::ReportInputOptions
source · pub struct ReportInputOptions {
pub status_ids: Option<Vec<String>>,
pub comment: Option<String>,
pub forward: Option<bool>,
pub category: Option<Category>,
pub rule_ids: Option<Vec<u64>>,
}
Expand description
Input options for Megalodon::report
.
Fields§
§status_ids: Option<Vec<String>>
Array of Statuses to attach to the report.
comment: Option<String>
The reason for the report. Default maximum of 1000 characters.
forward: Option<bool>
If the account is remote, should the report be forwarded to the remote admin.
category: Option<Category>
Specify if the report is due to spam, violation of enumerated instance rules, or some other reason. Defaults to other. Will be set to violation if rule_ids[] is provided (regardless of any category value you provide).
rule_ids: Option<Vec<u64>>
For violation category reports, specify the ID of the exact rules broken. Rules and their IDs are available via GET /api/v1/instance/rules and GET /api/v1/instance.
Trait Implementations§
source§impl Clone for ReportInputOptions
impl Clone for ReportInputOptions
source§fn clone(&self) -> ReportInputOptions
fn clone(&self) -> ReportInputOptions
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 ReportInputOptions
impl Debug for ReportInputOptions
source§impl Default for ReportInputOptions
impl Default for ReportInputOptions
source§fn default() -> ReportInputOptions
fn default() -> ReportInputOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ReportInputOptions
impl RefUnwindSafe for ReportInputOptions
impl Send for ReportInputOptions
impl Sync for ReportInputOptions
impl Unpin for ReportInputOptions
impl UnwindSafe for ReportInputOptions
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