pub struct TrackingOptions {
pub opens: Option<bool>,
pub links: Option<bool>,
pub thread_replies: Option<bool>,
pub label: Option<String>,
}Expand description
Message tracking settings.
Controls whether to track opens and link clicks for sent messages.
Fields§
§opens: Option<bool>Enable open tracking for this message.
links: Option<bool>Enable link click tracking for this message.
thread_replies: Option<bool>Enable thread reply tracking for this message.
label: Option<String>Custom label for tracking this message.
Implementations§
Source§impl TrackingOptions
impl TrackingOptions
Sourcepub fn builder() -> TrackingOptionsBuilder
pub fn builder() -> TrackingOptionsBuilder
Create a new builder for tracking options.
Sourcepub fn all_enabled() -> Self
pub fn all_enabled() -> Self
Enable all tracking options.
Sourcepub fn all_disabled() -> Self
pub fn all_disabled() -> Self
Disable all tracking options.
Trait Implementations§
Source§impl Clone for TrackingOptions
impl Clone for TrackingOptions
Source§fn clone(&self) -> TrackingOptions
fn clone(&self) -> TrackingOptions
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TrackingOptions
impl Debug for TrackingOptions
Source§impl Default for TrackingOptions
impl Default for TrackingOptions
Source§fn default() -> TrackingOptions
fn default() -> TrackingOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TrackingOptions
impl<'de> Deserialize<'de> for TrackingOptions
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 TrackingOptions
Source§impl PartialEq for TrackingOptions
impl PartialEq for TrackingOptions
Source§fn eq(&self, other: &TrackingOptions) -> bool
fn eq(&self, other: &TrackingOptions) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TrackingOptions
impl Serialize for TrackingOptions
impl StructuralPartialEq for TrackingOptions
Auto Trait Implementations§
impl Freeze for TrackingOptions
impl RefUnwindSafe for TrackingOptions
impl Send for TrackingOptions
impl Sync for TrackingOptions
impl Unpin for TrackingOptions
impl UnsafeUnpin for TrackingOptions
impl UnwindSafe for TrackingOptions
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