pub struct Reports {
    pub client: Client,
}

Fields

client: Client

Implementations

List campaign reports.

This function performs a GET to the /reports endpoint.

Get campaign reports.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • count: i64 – The number of records to return. Default value is 10. Maximum value is 1000.
  • offset: i64 – Used for pagination, this it the number of records from a collection to skip. Default value is 0.
  • type_: crate::types::CampaignType – There are four types of campaigns you can create in Mailchimp. A/B Split campaigns have been deprecated and variate campaigns should be used instead.
  • before_send_time: chrono::DateTime<chrono::Utc> – Restrict the response to campaigns sent before the set time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • since_send_time: chrono::DateTime<chrono::Utc> – Restrict the response to campaigns sent after the set time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

Get campaign report.

This function performs a GET to the /reports/{campaign_id} endpoint.

Get report details for a specific sent campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.

List abuse reports.

This function performs a GET to the /reports/{campaign_id}/abuse-reports endpoint.

Get a list of abuse complaints for a specific campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.

Get abuse report.

This function performs a GET to the /reports/{campaign_id}/abuse-reports/{report_id} endpoint.

Get information about a specific abuse report for a campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.
  • report_id: &str – The id for the abuse report.

List campaign feedback.

This function performs a GET to the /reports/{campaign_id}/advice endpoint.

Get feedback based on a campaign’s statistics. Advice feedback is based on campaign stats like opens, clicks, unsubscribes, bounces, and more.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.

List campaign details.

This function performs a GET to the /reports/{campaign_id}/click-details endpoint.

Get information about clicks on specific links in your Mailchimp campaigns.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • count: i64 – The number of records to return. Default value is 10. Maximum value is 1000.
  • offset: i64 – Used for pagination, this it the number of records from a collection to skip. Default value is 0.
  • campaign_id: &str – The unique id for the campaign.

Get campaign link details.

This function performs a GET to the /reports/{campaign_id}/click-details/{link_id} endpoint.

Get click details for a specific link in a campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.
  • link_id: &str – The name of the folder.

List clicked link subscribers.

This function performs a GET to the /reports/{campaign_id}/click-details/{link_id}/members endpoint.

Get information about list members who clicked on a specific link in a campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • count: i64 – The number of records to return. Default value is 10. Maximum value is 1000.
  • offset: i64 – Used for pagination, this it the number of records from a collection to skip. Default value is 0.
  • campaign_id: &str – The unique id for the campaign.
  • link_id: &str – The name of the folder.

Get clicked link subscriber.

This function performs a GET to the /reports/{campaign_id}/click-details/{link_id}/members/{subscriber_hash} endpoint.

Get information about a specific subscriber who clicked a link in a specific campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.
  • link_id: &str – The name of the folder.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.

List campaign open details.

This function performs a GET to the /reports/{campaign_id}/open-details endpoint.

Get detailed information about any campaign emails that were opened by a list member.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • count: i64 – The number of records to return. Default value is 10. Maximum value is 1000.
  • offset: i64 – Used for pagination, this it the number of records from a collection to skip. Default value is 0.
  • campaign_id: &str – The unique id for the campaign.
  • since: &str – Restrict results to campaign open events that occur after a specific time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

Get opened campaign subscriber.

This function performs a GET to the /reports/{campaign_id}/open-details/{subscriber_hash} endpoint.

Get information about a specific subscriber who opened a campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.

List domain performance stats.

This function performs a GET to the /reports/{campaign_id}/domain-performance endpoint.

Get statistics for the top-performing email domains in a campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.

List EepURL activity.

This function performs a GET to the /reports/{campaign_id}/eepurl endpoint.

Get a summary of social activity for the campaign, tracked by EepURL.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.

List email activity.

This function performs a GET to the /reports/{campaign_id}/email-activity endpoint.

Get a list of member’s subscriber activity in a specific campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • count: i64 – The number of records to return. Default value is 10. Maximum value is 1000.
  • offset: i64 – Used for pagination, this it the number of records from a collection to skip. Default value is 0.
  • campaign_id: &str – The unique id for the campaign.
  • since: &str – Restrict results to email activity events that occur after a specific time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

Get subscriber email activity.

This function performs a GET to the /reports/{campaign_id}/email-activity/{subscriber_hash} endpoint.

Get a specific list member’s activity in a campaign including opens, clicks, and bounces.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.
  • since: &str – Restrict results to email activity events that occur after a specific time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

List top open activities.

This function performs a GET to the /reports/{campaign_id}/locations endpoint.

Get top open locations for a specific campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.
  • count: i64 – The number of records to return. Default value is 10. Maximum value is 1000.
  • offset: i64 – Used for pagination, this it the number of records from a collection to skip. Default value is 0.

List campaign recipients.

This function performs a GET to the /reports/{campaign_id}/sent-to endpoint.

Get information about campaign recipients.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • count: i64 – The number of records to return. Default value is 10. Maximum value is 1000.
  • offset: i64 – Used for pagination, this it the number of records from a collection to skip. Default value is 0.
  • campaign_id: &str – The unique id for the campaign.

Get campaign recipient info.

This function performs a GET to the /reports/{campaign_id}/sent-to/{subscriber_hash} endpoint.

Get information about a specific campaign recipient.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.

List child campaign reports.

This function performs a GET to the /reports/{campaign_id}/sub-reports endpoint.

Get a list of reports with child campaigns for a specific parent campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.

List unsubscribed members.

This function performs a GET to the /reports/{campaign_id}/unsubscribed endpoint.

Get information about members who have unsubscribed from a specific campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • count: i64 – The number of records to return. Default value is 10. Maximum value is 1000.
  • offset: i64 – Used for pagination, this it the number of records from a collection to skip. Default value is 0.
  • campaign_id: &str – The unique id for the campaign.

Get unsubscribed member.

This function performs a GET to the /reports/{campaign_id}/unsubscribed/{subscriber_hash} endpoint.

Get information about a specific list member who unsubscribed from a campaign.

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • campaign_id: &str – The unique id for the campaign.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.

List campaign product activity.

This function performs a GET to the /reports/{campaign_id}/ecommerce-product-activity endpoint.

Get breakdown of product activity for a campaign

Parameters:

  • fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • exclude_fields: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.
  • count: i64 – The number of records to return. Default value is 10. Maximum value is 1000.
  • offset: i64 – Used for pagination, this it the number of records from a collection to skip. Default value is 0.
  • campaign_id: &str – The unique id for the campaign.
  • sort_field: crate::types::GetReportsEcommerceProductActivitySortField – Returns files sorted by the specified field.

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