pub struct TrackingSettingsBuilder { /* fields omitted */ }
Builder pattern for TrackingSettings
. Make sure you call build()
to consume this and return
the underlying TrackingSetting
. Construct with default().
Sets the click_tracking setting enabled to be true. Pass true to this method to enable text
tracking as well.
let builder = TrackingSettingsBuilder::default()
.click_tracking(true);
Sets the open_tracking stting enabled to be true. Pass in the substitution_tag to be
replaced with it.
let builder = TrackingSettingsBuilder::default()
.open_tracking("[OPEN_TAG]");
Sets the substitution tag and text and/or html for subscription_tracking
substitution_tag: impl Intl
text: Option
html: Option
let builder = TrackingSettingsBuilder::default()
.substitution_tag("[SUBSTITUTION_TAG]", None, None);
Consumes the TrackingSettingsBuilder
and returns the underlying TrackingSettings
let setting = TrackingSettingsBuilder::default().build();
Returns the "default value" for a type. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static