[−][src]Struct mailchimp::types::CampaignType
Fields
id: Option<String>
A string that uniquely identifies this campaign.
web_id: Option<u64>
The ID used in the Mailchimp web application. View this campaign in your Mailchimp account at https://{dc}.admin.mailchimp.com/campaigns/show/?id={web_id}.
parent_campaign_id: Option<String>
If this campaign is the child of another campaign, this identifies the parent campaign. For Example, for RSS or Automation children.
campaign_type: Option<String>
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.
create_time: Option<String>
The date and time the campaign was created in ISO 8601 format.
archive_url: Option<String>
The link to the campaign’s archive version in ISO 8601 format.
long_archive_url: Option<String>
The original link to the campaign’s archive version.
status: Option<String>
The current status of the campaign.
emails_sent: Option<u64>
The total number of emails sent for this campaign.
send_time: Option<String>
The date and time a campaign was sent.
content_type: Option<String>
How the campaign’s content is put together (‘template’, ‘drag_and_drop’, ‘html’, ‘url’).
needs_block_refresh: Option<bool>
Determines if the campaign needs its blocks refreshed by opening the web-based campaign editor.
has_logo_merge_tag: Option<bool>
Determines if the campaign contains the |BRAND:LOGO| merge tag.
resendable: Option<bool>
Determines if the campaign qualifies to be resent to non-openers.
recipients: Option<RecipientType>
List settings for the campaign.
settings: Option<CampaignSettingsType>
The settings for your campaign, including subject, from name, reply-to address, and more.
variate_settings: Option<VariateSettingsType>
The settings specific to A/B test campaigns.
tracking: Option<CampaignTrackingOptionsType>
The tracking options for a campaign.
rss_opts: Option<RSSOptionsType>
RSS options for a campaign.
ab_split_opts: Option<ABTestingOptionsType>
A/B Testing options for a campaign.
The preview for the campaign, rendered by social networks like Facebook and Twitter. Learn more.
report_summary: Option<CampaignReportSummaryType>
For sent campaigns, a summary of opens, clicks, and e-commerce data.
delivery_status: Option<CampaignDeliveryStatusType>
Updates on campaigns in the process of sending.
_links: Option<Vec<LinkType>>
Desc: A list of link types and descriptions for the API schema documents.
Methods
impl CampaignType
[src]
pub fn cancel_campaign(&self) -> Result<EmptyType, MailchimpErrorType>
[src]
Cancel a campaign
pub fn resend_campaign(&self) -> Result<CampaignType, MailchimpErrorType>
[src]
Resend a campaign
pub fn pause_rss_driven_campaign(&self) -> Result<EmptyType, MailchimpErrorType>
[src]
Pause an RSS-Driven campaign
pub fn replicate_campaign(&self) -> Result<CampaignType, MailchimpErrorType>
[src]
Replicate a campaign in saved or send status.
pub fn resume_rss_driven_campaign(
&self
) -> Result<EmptyType, MailchimpErrorType>
[src]
&self
) -> Result<EmptyType, MailchimpErrorType>
Resume an RSS-Driven campaign.
pub fn schedule_campaign(
&self,
param: ScheduleParam
) -> Result<EmptyType, MailchimpErrorType>
[src]
&self,
param: ScheduleParam
) -> Result<EmptyType, MailchimpErrorType>
Schedule a campaign for delivery. If you’re using Multivariate Campaigns to test send times or sending RSS Campaigns, use the send action instead.
pub fn send_campaign(&self) -> Result<EmptyType, MailchimpErrorType>
[src]
Send a Mailchimp campaign. For RSS Campaigns, the campaign will send according to its schedule. All other campaigns will send immediately.
pub fn send_test_email(
&self,
param: EmailParam
) -> Result<EmptyType, MailchimpErrorType>
[src]
&self,
param: EmailParam
) -> Result<EmptyType, MailchimpErrorType>
Send a test email.
pub fn unschedule_campaign(&self) -> Result<EmptyType, MailchimpErrorType>
[src]
Unschedule a scheduled campaign that hasn’t started sending.
pub fn delete(&self) -> Result<bool, MailchimpErrorType>
[src]
Remove a campaign from your Mailchimp account.
pub fn update(
&self,
param: UpdateCampaignParam
) -> Result<CampaignType, MailchimpErrorType>
[src]
&self,
param: UpdateCampaignParam
) -> Result<CampaignType, MailchimpErrorType>
Remove a campaign from your Mailchimp account.
pub fn get_content(
&self,
fields: Option<String>,
exclude_fields: Option<String>
) -> Result<CampaignContentType, MailchimpErrorType>
[src]
&self,
fields: Option<String>,
exclude_fields: Option<String>
) -> Result<CampaignContentType, MailchimpErrorType>
Get the the HTML and plain-text content for a campaign.
Arguments: fields: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation. exclude_fields: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
pub fn update_content(
&self,
param: CampaignContentParam
) -> Result<CampaignContentType, MailchimpErrorType>
[src]
&self,
param: CampaignContentParam
) -> Result<CampaignContentType, MailchimpErrorType>
Set the content for a campaign.
pub fn send_checklist(
&self,
fields: Option<String>,
exclude_fields: Option<String>
) -> Result<SendChecklistType, MailchimpErrorType>
[src]
&self,
fields: Option<String>,
exclude_fields: Option<String>
) -> Result<SendChecklistType, MailchimpErrorType>
Review the send checklist for a campaign, and resolve any issues before sending.
Arguments: fields: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation. exclude_fields: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
ⓘImportant traits for MalchimpIter<B>pub fn get_feedbacks(
&self,
fields: Option<String>,
exclude_fields: Option<String>
) -> MalchimpIter<CampaignFeedbackBuilder>
[src]
&self,
fields: Option<String>,
exclude_fields: Option<String>
) -> MalchimpIter<CampaignFeedbackBuilder>
Get team feedback while you’re working together on a Mailchimp campaign.
Arguments: fields: A comma-separated list of fields to return. Reference parameters of sub-objects with dot notation. exclude_fields: A comma-separated list of fields to exclude. Reference parameters of sub-objects with dot notation.
pub fn get_feedback_info<'a>(
&self,
feedback_id: &'a str,
fields: Option<String>,
exclude_fields: Option<String>
) -> Result<CampaignFeedbackType, MailchimpErrorType>
[src]
&self,
feedback_id: &'a str,
fields: Option<String>,
exclude_fields: Option<String>
) -> Result<CampaignFeedbackType, MailchimpErrorType>
Trait Implementations
impl MailchimpCollection<CampaignType> for CampaignsType
[src]
impl Clone for CampaignType
[src]
fn clone(&self) -> CampaignType
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for CampaignType
[src]
impl Serialize for CampaignType
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for CampaignType
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for CampaignType
impl Sync for CampaignType
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T, U> TryInto for T where
U: TryFrom<T>,
U: TryFrom<T>,