Struct mailchimp_api::lists::Lists

source ·
pub struct Lists {
    pub client: Client,
}

Fields

client: Client

Implementations

Get lists info.

This function performs a GET to the /lists endpoint.

Get information about all lists in the account.

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.
  • before_date_created: &str – Restrict response to lists created before the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • since_date_created: &str – Restrict results to lists created after the set date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • before_campaign_last_sent: &str – Restrict results to lists created before the last campaign send date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • since_campaign_last_sent: &str – Restrict results to lists created after the last campaign send date. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • email: &str – Restrict results to lists that include a specific subscriber’s email address.
  • sort_field: crate::types::GetListsSortField – Returns files sorted by the specified field.
  • sort_dir: crate::types::SortDir – Determines the order direction for sorted results.
  • has_ecommerce_store: bool – Restrict results to lists that contain an active, connected, undeleted ecommerce store.
  • include_total_contacts: bool – Return the total_contacts field in the stats response, which contains an approximate count of all contacts in any state.

Add list.

This function performs a POST to the /lists endpoint.

Create a new list in your Mailchimp account.

Get list info.

This function performs a GET to the /lists/{list_id} endpoint.

Get information about a specific list in your Mailchimp account. Results include list members who have signed up but haven’t confirmed their subscription yet and unsubscribed or cleaned.

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.
  • list_id: &str – The unique ID for the list.
  • include_total_contacts: bool – Return the total_contacts field in the stats response, which contains an approximate count of all contacts in any state.

Batch subscribe or unsubscribe.

This function performs a POST to the /lists/{list_id} endpoint.

Batch subscribe or unsubscribe list members.

Parameters:

  • list_id: &str – The unique ID for the list.
  • skip_merge_validation: bool – If skip_merge_validation is true, member data will be accepted without merge field values, even if the merge field is usually required. This defaults to false.
  • skip_duplicate_check: bool – If skip_duplicate_check is true, we will ignore duplicates sent in the request when using the batch sub/unsub on the lists endpoint. The status of the first appearance in the request will be saved. This defaults to false.

Delete list.

This function performs a DELETE to the /lists/{list_id} endpoint.

Delete a list from your Mailchimp account. If you delete a list, you’ll lose the list history—including subscriber activity, unsubscribes, complaints, and bounces. You’ll also lose subscribers’ email addresses, unless you exported and backed up your list.

Parameters:

  • list_id: &str – The unique ID for the list.

Update lists.

This function performs a PATCH to the /lists/{list_id} endpoint.

Update the settings for a specific list.

Parameters:

  • list_id: &str – The unique ID for the list.

List abuse reports.

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

Get all abuse reports for a specific list.

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.
  • list_id: &str – The unique ID for the list.

Get abuse report.

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

Get details about a specific abuse report.

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.
  • list_id: &str – The unique ID for the list.
  • report_id: &str – The id for the abuse report.

List recent activity.

This function performs a GET to the /lists/{list_id}/activity endpoint.

Get up to the previous 180 days of daily detailed aggregated activity stats for a list, not including Automation activity.

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.
  • list_id: &str – The unique ID for the list.

List top email clients.

This function performs a GET to the /lists/{list_id}/clients endpoint.

Get a list of the top email clients based on user-agent strings.

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.
  • list_id: &str – The unique ID for the list.

List growth history data.

This function performs a GET to the /lists/{list_id}/growth-history endpoint.

Get a month-by-month summary of a specific list’s growth activity.

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.
  • list_id: &str – The unique ID for the list.
  • sort_field: crate::types::GetListsGrowthHistorySortField – Returns files sorted by the specified field.
  • sort_dir: crate::types::SortDir – Determines the order direction for sorted results.

Get growth history by month.

This function performs a GET to the /lists/{list_id}/growth-history/{month} endpoint.

Get a summary of a specific list’s growth activity for a specific month and year.

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.
  • list_id: &str – The unique ID for the list.
  • month: &str – A specific month of list growth history.

List interest categories.

This function performs a GET to the /lists/{list_id}/interest-categories endpoint.

Get information about a list’s interest categories.

Parameters:

  • list_id: &str – The unique ID for the list.
  • 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_: &str – Restrict results a type of interest group.

Add interest category.

This function performs a POST to the /lists/{list_id}/interest-categories endpoint.

Create a new interest category.

Parameters:

  • list_id: &str – The unique ID for the list.

Get interest category info.

This function performs a GET to the /lists/{list_id}/interest-categories/{interest_category_id} endpoint.

Get information about a specific interest category.

Parameters:

  • list_id: &str – The unique ID for the list.
  • interest_category_id: &str – The unique ID for the interest category.
  • 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.

Delete interest category.

This function performs a DELETE to the /lists/{list_id}/interest-categories/{interest_category_id} endpoint.

Delete a specific interest category.

Parameters:

  • list_id: &str – The unique ID for the list.
  • interest_category_id: &str – The unique ID for the interest category.

Update interest category.

This function performs a PATCH to the /lists/{list_id}/interest-categories/{interest_category_id} endpoint.

Update a specific interest category.

Parameters:

  • list_id: &str – The unique ID for the list.
  • interest_category_id: &str – The unique ID for the interest category.

List interests in category.

This function performs a GET to the /lists/{list_id}/interest-categories/{interest_category_id}/interests endpoint.

Get a list of this category’s interests.

Parameters:

  • list_id: &str – The unique ID for the list.
  • interest_category_id: &str – The unique ID for the interest category.
  • 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.

Add interest in category.

This function performs a POST to the /lists/{list_id}/interest-categories/{interest_category_id}/interests endpoint.

Create a new interest or ‘group name’ for a specific category.

Parameters:

  • list_id: &str – The unique ID for the list.
  • interest_category_id: &str – The unique ID for the interest category.

Get interest in category.

This function performs a GET to the /lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id} endpoint.

Get interests or ‘group names’ for a specific category.

Parameters:

  • list_id: &str – The unique ID for the list.
  • interest_category_id: &str – The unique ID for the interest category.
  • interest_id: &str – The specific interest or ‘group name’.
  • 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.

Delete interest in category.

This function performs a DELETE to the /lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id} endpoint.

Delete interests or group names in a specific category.

Parameters:

  • list_id: &str – The unique ID for the list.
  • interest_category_id: &str – The unique ID for the interest category.
  • interest_id: &str – The specific interest or ‘group name’.

Update interest in category.

This function performs a PATCH to the /lists/{list_id}/interest-categories/{interest_category_id}/interests/{interest_id} endpoint.

Update interests or ‘group names’ for a specific category.

Parameters:

  • list_id: &str – The unique ID for the list.
  • interest_category_id: &str – The unique ID for the interest category.
  • interest_id: &str – The specific interest or ‘group name’.

List segments.

This function performs a GET to the /lists/{list_id}/segments endpoint.

Get information about all available segments for a specific list.

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.
  • list_id: &str – The unique ID for the list.
  • type_: &str – Limit results based on segment type.
  • since_created_at: &str – Restrict results to segments created after the set time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • before_created_at: &str – Restrict results to segments created before the set time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • include_cleaned: bool – Whether the webhook is triggered when a list subscriber is added.
  • include_transactional: bool – Whether the webhook is triggered when a list subscriber is added.
  • include_unsubscribed: bool – Whether the webhook is triggered when a list subscriber is added.
  • since_updated_at: &str – Restrict results to segments update after the set time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • before_updated_at: &str – Restrict results to segments update before the set time. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.

Add segment.

This function performs a POST to the /lists/{list_id}/segments endpoint.

Create a new segment in a specific list.

Parameters:

  • list_id: &str – The unique ID for the list.

Get segment info.

This function performs a GET to the /lists/{list_id}/segments/{segment_id} endpoint.

Get information about a specific segment.

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.
  • list_id: &str – The unique ID for the list.
  • segment_id: &str – The unique id for the segment.
  • include_cleaned: bool – Whether the webhook is triggered when a list subscriber is added.
  • include_transactional: bool – Whether the webhook is triggered when a list subscriber is added.
  • include_unsubscribed: bool – Whether the webhook is triggered when a list subscriber is added.

Batch add or remove members.

This function performs a POST to the /lists/{list_id}/segments/{segment_id} endpoint.

Batch add/remove list members to static segment

Parameters:

  • list_id: &str – The unique ID for the list.
  • segment_id: &str – The unique id for the segment.

Delete segment.

This function performs a DELETE to the /lists/{list_id}/segments/{segment_id} endpoint.

Delete a specific segment in a list.

Parameters:

  • list_id: &str – The unique ID for the list.
  • segment_id: &str – The unique id for the segment.

Update segment.

This function performs a PATCH to the /lists/{list_id}/segments/{segment_id} endpoint.

Update a specific segment in a list.

Parameters:

  • list_id: &str – The unique ID for the list.
  • segment_id: &str – The unique id for the segment.

List members in segment.

This function performs a GET to the /lists/{list_id}/segments/{segment_id}/members endpoint.

Get information about members in a saved segment.

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.
  • list_id: &str – The unique ID for the list.
  • segment_id: &str – The unique id for the segment.
  • include_cleaned: bool – Whether the webhook is triggered when a list subscriber is added.
  • include_transactional: bool – Whether the webhook is triggered when a list subscriber is added.
  • include_unsubscribed: bool – Whether the webhook is triggered when a list subscriber is added.

Add member to segment.

This function performs a POST to the /lists/{list_id}/segments/{segment_id}/members endpoint.

Add a member to a static segment.

Parameters:

  • list_id: &str – The unique ID for the list.
  • segment_id: &str – The unique id for the segment.

Remove list member from segment.

This function performs a DELETE to the /lists/{list_id}/segments/{segment_id}/members/{subscriber_hash} endpoint.

Remove a member from the specified static segment.

Parameters:

  • list_id: &str – The unique ID for the list.
  • segment_id: &str – The unique id for the segment.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.

Search for tags on a list by name.

This function performs a GET to the /lists/{list_id}/tag-search endpoint.

Search for tags on a list by name. If no name is provided, will return all tags on the list.

Parameters:

  • list_id: &str – The unique ID for the list.
  • name: &str – The search query used to filter tags. The search query will be compared to each tag as a prefix, so all tags that have a name starting with this field will be returned.

List members info.

This function performs a GET to the /lists/{list_id}/members endpoint.

Get information about members in a specific Mailchimp list.

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.
  • list_id: &str – The unique ID for the list.
  • email_type: &str – The name of the folder.
  • status: crate::types::GetListsMembersStatus – The subscriber’s status.
  • since_timestamp_opt: &str – Restrict results to subscribers who opted-in after the set timeframe. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • before_timestamp_opt: &str – Restrict results to subscribers who opted-in before the set timeframe. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • since_last_changed: &str – Restrict results to subscribers whose information changed after the set timeframe. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • before_last_changed: &str – Restrict results to subscribers whose information changed before the set timeframe. Uses ISO 8601 time format: 2015-10-21T15:41:36+00:00.
  • unique_email_id: &str – A unique identifier for the email address across all Mailchimp lists.
  • vip_only: bool – A filter to return only the list’s VIP members. Passing true will restrict results to VIP list members, passing false will return all list members.
  • interest_category_id: &str – The unique id for the interest category.
  • interest_ids: &str – Used to filter list members by interests. Must be accompanied by interest_category_id and interest_match. The value must be a comma separated list of interest ids present for any supplied interest categories.
  • interest_match: crate::types::InterestMatch – Used to filter list members by interests. Must be accompanied by interest_category_id and interest_ids. “any” will match a member with any of the interest supplied, “all” will only match members with every interest supplied, and “none” will match members without any of the interest supplied.
  • sort_field: crate::types::GetListsMembersSortField – Returns files sorted by the specified field.
  • sort_dir: crate::types::SortDir – Determines the order direction for sorted results.
  • since_last_campaign: bool – Filter subscribers by those subscribed/unsubscribed/pending/cleaned since last email campaign send. Member status is required to use this filter.
  • unsubscribed_since: &str – Filter subscribers by those unsubscribed since a specific date. Using any status other than unsubscribed with this filter will result in an error.

Add member to list.

This function performs a POST to the /lists/{list_id}/members endpoint.

Add a new member to the list.

Parameters:

  • list_id: &str – The unique ID for the list.
  • skip_merge_validation: bool – If skip_merge_validation is true, member data will be accepted without merge field values, even if the merge field is usually required. This defaults to false.

Get member info.

This function performs a GET to the /lists/{list_id}/members/{subscriber_hash} endpoint.

Get information about a specific list member, including a currently subscribed, unsubscribed, or bounced 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.
  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address. This endpoint also accepts email addresses.

Add or update list member.

This function performs a PUT to the /lists/{list_id}/members/{subscriber_hash} endpoint.

Add or update a list member.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.
  • skip_merge_validation: bool – If skip_merge_validation is true, member data will be accepted without merge field values, even if the merge field is usually required. This defaults to false.

Archive list member.

This function performs a DELETE to the /lists/{list_id}/members/{subscriber_hash} endpoint.

Archive a list member. To permanently delete, use the delete-permanent action.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.

Update list member.

This function performs a PATCH to the /lists/{list_id}/members/{subscriber_hash} endpoint.

Update information for a specific list member.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.
  • skip_merge_validation: bool – If skip_merge_validation is true, member data will be accepted without merge field values, even if the merge field is usually required. This defaults to false.

View recent activity 50.

This function performs a GET to the /lists/{list_id}/members/{subscriber_hash}/activity endpoint.

Get the last 50 events of a member’s activity on a specific list, including opens, clicks, and unsubscribes.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.
  • 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.
  • action: &[String] – A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation.

View recent activity.

This function performs a GET to the /lists/{list_id}/members/{subscriber_hash}/activity-feed endpoint.

Get a member’s activity on a specific list, including opens, clicks, and unsubscribes.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.
  • 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.
  • activity_filters: &[String] – A comma-separated list of activity filters that correspond to a set of activity types, e.g “?activity_filters=open,bounce,click”.

List member tags.

This function performs a GET to the /lists/{list_id}/members/{subscriber_hash}/tags endpoint.

Get the tags on a list member.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.
  • 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.

Add or remove member tags.

This function performs a POST to the /lists/{list_id}/members/{subscriber_hash}/tags endpoint.

Add or remove tags from a list member. If a tag that does not exist is passed in and set as ‘active’, a new tag will be created.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.

List member events.

This function performs a GET to the /lists/{list_id}/members/{subscriber_hash}/events endpoint.

Get events for a contact.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address. This endpoint also accepts email addresses.
  • 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.
  • 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.

Add event.

This function performs a POST to the /lists/{list_id}/members/{subscriber_hash}/events endpoint.

Add an event for a list member.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address. This endpoint also accepts email addresses.

List member goal events.

This function performs a GET to the /lists/{list_id}/members/{subscriber_hash}/goals endpoint.

Get the last 50 Goal events for a member on a specific list.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.
  • 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.

List recent member notes.

This function performs a GET to the /lists/{list_id}/members/{subscriber_hash}/notes endpoint.

Get recent notes for a specific list member.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.
  • sort_field: crate::types::GetListsMembersNotesSortField – Returns notes sorted by the specified field.
  • sort_dir: crate::types::SortDir – Determines the order direction for sorted results.
  • 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.

Add member note.

This function performs a POST to the /lists/{list_id}/members/{subscriber_hash}/notes endpoint.

Add a new note for a specific subscriber.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.

Get member note.

This function performs a GET to the /lists/{list_id}/members/{subscriber_hash}/notes/{note_id} endpoint.

Get a specific note for a specific list member.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.
  • note_id: &str – The name of the folder.
  • 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.

Delete note.

This function performs a DELETE to the /lists/{list_id}/members/{subscriber_hash}/notes/{note_id} endpoint.

Delete a specific note for a specific list member.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.
  • note_id: &str – The name of the folder.

Update note.

This function performs a PATCH to the /lists/{list_id}/members/{subscriber_hash}/notes/{note_id} endpoint.

Update a specific note for a specific list member.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.
  • note_id: &str – The name of the folder.

Delete list member.

This function performs a POST to the /lists/{list_id}/members/{subscriber_hash}/actions/delete-permanent endpoint.

Delete all personally identifiable information related to a list member, and remove them from a list. This will make it impossible to re-import the list member.

Parameters:

  • list_id: &str – The unique ID for the list.
  • subscriber_hash: &str – The MD5 hash of the lowercase version of the list member’s email address.

List merge fields.

This function performs a GET to the /lists/{list_id}/merge-fields endpoint.

Get a list of all merge fields (audience fields) for a list.

Parameters:

  • list_id: &str – The unique ID for the list.
  • 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_: &str – The name of the folder.
  • required: bool – Whether the webhook is triggered when a list subscriber is added.

Add merge field.

This function performs a POST to the /lists/{list_id}/merge-fields endpoint.

Add a new merge field (audience field) for a specific list.

Parameters:

  • list_id: &str – The unique ID for the list.

Get merge field.

This function performs a GET to the /lists/{list_id}/merge-fields/{merge_id} endpoint.

Get information about a specific merge field (audience field) in a list.

Parameters:

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

Delete merge field.

This function performs a DELETE to the /lists/{list_id}/merge-fields/{merge_id} endpoint.

Delete a specific merge field (audience field) in a list.

Parameters:

  • list_id: &str – The unique ID for the list.
  • merge_id: &str – The id for the merge field.

Update merge field.

This function performs a PATCH to the /lists/{list_id}/merge-fields/{merge_id} endpoint.

Update a specific merge field (audience field) in a list.

Parameters:

  • list_id: &str – The unique ID for the list.
  • merge_id: &str – The id for the merge field.

List webhooks.

This function performs a GET to the /lists/{list_id}/webhooks endpoint.

Get information about all webhooks for a specific list.

Parameters:

  • list_id: &str – The unique ID for the list.

Add webhook.

This function performs a POST to the /lists/{list_id}/webhooks endpoint.

Create a new webhook for a specific list.

Parameters:

  • list_id: &str – The unique ID for the list.

Get webhook info.

This function performs a GET to the /lists/{list_id}/webhooks/{webhook_id} endpoint.

Get information about a specific webhook.

Parameters:

  • list_id: &str – The unique ID for the list.
  • webhook_id: &str – The name of the folder.

Delete webhook.

This function performs a DELETE to the /lists/{list_id}/webhooks/{webhook_id} endpoint.

Delete a specific webhook in a list.

Parameters:

  • list_id: &str – The unique ID for the list.
  • webhook_id: &str – The name of the folder.

Update webhook.

This function performs a PATCH to the /lists/{list_id}/webhooks/{webhook_id} endpoint.

Update the settings for an existing webhook.

Parameters:

  • list_id: &str – The unique ID for the list.
  • webhook_id: &str – The name of the folder.

List signup forms.

This function performs a GET to the /lists/{list_id}/signup-forms endpoint.

Get signup forms for a specific list.

Parameters:

  • list_id: &str – The unique ID for the list.

Customize signup form.

This function performs a POST to the /lists/{list_id}/signup-forms endpoint.

Customize a list’s default signup form.

Parameters:

  • list_id: &str – The unique ID for the list.

List locations.

This function performs a GET to the /lists/{list_id}/locations endpoint.

Get the locations (countries) that the list’s subscribers have been tagged to based on geocoding their IP address.

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.
  • list_id: &str – The unique ID for the list.

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