pub struct ModEventTakedownData {
pub acknowledge_account_subjects: Option<bool>,
pub comment: Option<String>,
pub duration_in_hours: Option<i64>,
pub policies: Option<Vec<String>>,
pub severity_level: Option<String>,
pub strike_count: Option<i64>,
pub strike_expires_at: Option<Datetime>,
pub target_services: Option<Vec<String>>,
}Available on crate feature
namespace-toolsozone only.Expand description
Take down a subject permanently or temporarily
Fields§
§acknowledge_account_subjects: Option<bool>If true, all other reports on content authored by this account will be resolved (acknowledged).
comment: Option<String>§duration_in_hours: Option<i64>Indicates how long the takedown should be in effect before automatically expiring.
policies: Option<Vec<String>>Names/Keywords of the policies that drove the decision.
severity_level: Option<String>Severity level of the violation (e.g., ‘sev-0’, ‘sev-1’, ‘sev-2’, etc.).
strike_count: Option<i64>Number of strikes to assign to the user for this violation.
strike_expires_at: Option<Datetime>When the strike should expire. If not provided, the strike never expires.
target_services: Option<Vec<String>>List of services where the takedown should be applied. If empty or not provided, takedown is applied on all configured services.
Trait Implementations§
Source§impl Clone for ModEventTakedownData
impl Clone for ModEventTakedownData
Source§impl Debug for ModEventTakedownData
impl Debug for ModEventTakedownData
Source§impl<'de> Deserialize<'de> for ModEventTakedownData
impl<'de> Deserialize<'de> for ModEventTakedownData
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 Eq for ModEventTakedownData
Source§impl PartialEq for ModEventTakedownData
impl PartialEq for ModEventTakedownData
Source§impl Serialize for ModEventTakedownData
impl Serialize for ModEventTakedownData
impl StructuralPartialEq for ModEventTakedownData
Auto Trait Implementations§
impl Freeze for ModEventTakedownData
impl RefUnwindSafe for ModEventTakedownData
impl Send for ModEventTakedownData
impl Sync for ModEventTakedownData
impl Unpin for ModEventTakedownData
impl UnsafeUnpin for ModEventTakedownData
impl UnwindSafe for ModEventTakedownData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.