pub struct TransactionalTemplates {
    pub client: Client,
}

Fields

client: Client

Implementations

Retrieve paged transactional templates.

This function performs a GET to the /templates endpoint.

This endpoint allows you to retrieve all transactional templates.

Parameters:

  • generations: crate::types::Generations – Comma-delimited list specifying which generations of templates to return. Options are legacy, dynamic or legacy,dynamic.
  • page_size: f64 – The number of templates to be returned in each page of results.
  • page_token: &str – A token corresponding to a specific page of results, as provided by metadata.
  • on_behalf_of: &str – The license key provided with your New Relic account.

Create a transactional template.

This function performs a POST to the /templates endpoint.

This endpoint allows you to create a transactional template.

Parameters:

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

Retrieve a single transactional template.

This function performs a GET to the /templates/{template_id} endpoint.

This endpoint allows you to retrieve a single transactional template.

Parameters:

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

Duplicate a transactional template.

This function performs a POST to the /templates/{template_id} endpoint.

This endpoint allows you to duplicate a transactional template.

Parameters:

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

Delete a template.

This function performs a DELETE to the /templates/{template_id} endpoint.

This endpoint allows you to delete a transactional template.

Parameters:

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

Edit a transactional template.

This function performs a PATCH to the /templates/{template_id} endpoint.

This endpoint allows you to edit the name of a transactional template.

To edit the template itself, create a new transactional template version.

Parameters:

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

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Attaches the provided Context to this type, returning a WithContext wrapper. Read more
Attaches the current Context to this type, returning a WithContext wrapper. Read more
Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

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

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.
Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more