pub struct Report {
pub report_type: String,
pub item_id: String,
pub item_type: ItemType,
pub body: String,
pub id: Option<String>,
pub reporter: String,
pub created: String,
pub closed: bool,
pub thread_id: String,
}Fields§
§report_type: StringThe type of the report being sent
item_id: StringThe ID of the item (project, version, or user) being reported
item_type: ItemTypeThe type of the item being reported
body: StringThe extended explanation of the report
id: Option<String>The ID of the report
reporter: StringThe ID of the user who reported the item
created: StringThe time at which the report was created
closed: boolWhether the report is resolved
thread_id: StringThe ID of the moderation thread associated with this report
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Report
impl<'de> Deserialize<'de> for Report
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for Report
Auto Trait Implementations§
impl Freeze for Report
impl RefUnwindSafe for Report
impl Send for Report
impl Sync for Report
impl Unpin for Report
impl UnwindSafe for Report
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