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: String
The type of the report being sent
item_id: String
The ID of the item (project, version, or user) being reported
item_type: ItemType
The type of the item being reported
body: String
The extended explanation of the report
id: Option<String>
The ID of the report
reporter: String
The ID of the user who reported the item
created: String
The time at which the report was created
closed: bool
Whether the report is resolved
thread_id: String
The 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