Revision control

Copy as Markdown

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ReportReason {
Inappropriate,
Misleading,
NotInterested,
Offensive,
Scam,
SeenTooManyTimes,
}
impl ReportReason {
pub(crate) fn as_str(self) -> &'static str {
match self {
ReportReason::Inappropriate => "inappropriate",
ReportReason::Misleading => "misleading",
ReportReason::NotInterested => "not_interested",
ReportReason::Offensive => "offensive",
ReportReason::Scam => "scam",
ReportReason::SeenTooManyTimes => "seen_too_many_times",
}
}
}