pub struct SettingsTracking {
    pub client: Client,
}

Fields§

§client: Client

Implementations§

source§

impl SettingsTracking

source

pub async fn get_tracking_settings( &self ) -> Result<Response<GetTrackingSettingsResponse>, ClientError>

Retrieve Tracking Settings.

This function performs a GET to the /tracking_settings endpoint.

This endpoint allows you to retrieve a list of all tracking settings on your account.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
source

pub async fn get_tracking_settings_click( &self ) -> Result<Response<ClickTracking>, ClientError>

Retrieve Click Track Settings.

This function performs a GET to the /tracking_settings/click endpoint.

This endpoint allows you to retrieve your current click tracking setting.

Click Tracking overrides all the links and URLs in your emails and points them to either SendGrid’s servers or the domain with which you branded your link. When a customer clicks a link, SendGrid tracks those clicks.

Click tracking helps you understand how users are engaging with your communications. SendGrid can track up to 1000 links per email

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
source

pub async fn patch_tracking_settings_click( &self, body: &PatchTrackingSettingsOpenRequest ) -> Result<Response<ClickTracking>, ClientError>

Update Click Tracking Settings.

This function performs a PATCH to the /tracking_settings/click endpoint.

This endpoint allows you to enable or disable your current click tracking setting.

Click Tracking overrides all the links and URLs in your emails and points them to either SendGrid’s servers or the domain with which you branded your link. When a customer clicks a link, SendGrid tracks those clicks.

Click tracking helps you understand how users are engaging with your communications. SendGrid can track up to 1000 links per email

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
source

pub async fn get_tracking_settings_google_analytic( &self ) -> Result<Response<GoogleAnalyticsSettings>, ClientError>

Retrieve Google Analytics Settings.

This function performs a GET to the /tracking_settings/google_analytics endpoint.

This endpoint allows you to retrieve your current setting for Google Analytics.

Google Analytics helps you understand how users got to your site and what they’re doing there. For more information about using Google Analytics, please refer to Google’s URL Builder and their article on “Best Practices for Campaign Building”.

We default the settings to Google’s recommendations. For more information, see Google Analytics Demystified.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
source

pub async fn patch_tracking_settings_google_analytics( &self, body: &GoogleAnalyticsSettings ) -> Result<Response<GoogleAnalyticsSettings>, ClientError>

Update Google Analytics Settings.

This function performs a PATCH to the /tracking_settings/google_analytics endpoint.

This endpoint allows you to update your current setting for Google Analytics.

Google Analytics helps you understand how users got to your site and what they’re doing there. For more information about using Google Analytics, please refer to Google’s URL Builder and their article on “Best Practices for Campaign Building”.

We default the settings to Google’s recommendations. For more information, see Google Analytics Demystified.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
source

pub async fn get_tracking_settings_open( &self ) -> Result<Response<GetTrackingSettingsOpenResponse>, ClientError>

Get Open Tracking Settings.

This function performs a GET to the /tracking_settings/open endpoint.

This endpoint allows you to retrieve your current settings for open tracking.

Open Tracking adds an invisible image at the end of the email which can track email opens.

If the email recipient has images enabled on their email client, a request to SendGrid’s server for the invisible image is executed and an open event is logged.

These events are logged in the Statistics portal, Email Activity interface, and are reported by the Event Webhook.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
source

pub async fn patch_tracking_settings_open( &self, body: &PatchTrackingSettingsOpenRequest ) -> Result<Response<GetTrackingSettingsOpenResponse>, ClientError>

Update Open Tracking Settings.

This function performs a PATCH to the /tracking_settings/open endpoint.

This endpoint allows you to update your current settings for open tracking.

Open Tracking adds an invisible image at the end of the email which can track email opens.

If the email recipient has images enabled on their email client, a request to SendGrid’s server for the invisible image is executed and an open event is logged.

These events are logged in the Statistics portal, Email Activity interface, and are reported by the Event Webhook.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
source

pub async fn get_tracking_settings_subscription( &self ) -> Result<Response<SubscriptionTrackingSettings>, ClientError>

Retrieve Subscription Tracking Settings.

This function performs a GET to the /tracking_settings/subscription endpoint.

This endpoint allows you to retrieve your current settings for subscription tracking.

Subscription tracking adds links to the bottom of your emails that allows your recipients to subscribe to, or unsubscribe from, your emails.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.
source

pub async fn patch_tracking_settings_subscription( &self, body: &SubscriptionTrackingSettings ) -> Result<Response<SubscriptionTrackingSettings>, ClientError>

Update Subscription Tracking Settings.

This function performs a PATCH to the /tracking_settings/subscription endpoint.

This endpoint allows you to update your current settings for subscription tracking.

Subscription tracking adds links to the bottom of your emails that allows your recipients to subscribe to, or unsubscribe from, your emails.

Parameters:

  • on_behalf_of: &str – The license key provided with your New Relic account.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<V, T> VZip<V> for Twhere V: MultiLane<T>,

§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more