pub struct ModEventEmailData {
pub comment: Option<String>,
pub content: Option<String>,
pub is_delivered: Option<bool>,
pub policies: Option<Vec<String>>,
pub severity_level: Option<String>,
pub strike_count: Option<i64>,
pub strike_expires_at: Option<Datetime>,
pub subject_line: String,
}Available on crate feature
namespace-toolsozone only.Expand description
Keep a log of outgoing email to a user
Fields§
§comment: Option<String>Additional comment about the outgoing comm.
content: Option<String>The content of the email sent to the user.
is_delivered: Option<bool>Indicates whether the email was successfully delivered to the user’s inbox.
policies: Option<Vec<String>>Names/Keywords of the policies that necessitated the email.
severity_level: Option<String>Severity level of the violation. Normally ‘sev-1’ that adds strike on repeat offense
strike_count: Option<i64>Number of strikes to assign to the user for this violation. Normally 0 as an indicator of a warning and only added as a strike on a repeat offense.
strike_expires_at: Option<Datetime>When the strike should expire. If not provided, the strike never expires.
subject_line: StringThe subject line of the email sent to the user.
Trait Implementations§
Source§impl Clone for ModEventEmailData
impl Clone for ModEventEmailData
Source§impl Debug for ModEventEmailData
impl Debug for ModEventEmailData
Source§impl<'de> Deserialize<'de> for ModEventEmailData
impl<'de> Deserialize<'de> for ModEventEmailData
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 ModEventEmailData
Source§impl PartialEq for ModEventEmailData
impl PartialEq for ModEventEmailData
Source§impl Serialize for ModEventEmailData
impl Serialize for ModEventEmailData
impl StructuralPartialEq for ModEventEmailData
Auto Trait Implementations§
impl Freeze for ModEventEmailData
impl RefUnwindSafe for ModEventEmailData
impl Send for ModEventEmailData
impl Sync for ModEventEmailData
impl Unpin for ModEventEmailData
impl UnsafeUnpin for ModEventEmailData
impl UnwindSafe for ModEventEmailData
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.