Struct mailchimp::types::AutomationWorkflowType
source · pub struct AutomationWorkflowType {
pub id: Option<String>,
pub create_time: Option<String>,
pub start_time: Option<String>,
pub status: Option<String>,
pub emails_sent: Option<u64>,
pub recipients: Option<RecipientType>,
pub settings: Option<AutomationCampaignSettingsType>,
pub tracking: Option<AutomationTrackingOptionsType>,
pub trigger_settings: Option<AutomationTriggerType>,
pub report_summary: Option<CampaignReportSummaryType>,
pub _links: Option<Vec<LinkType>>,
pub _api: MailchimpApi,
}
Fields
id: Option<String>
A string that identifies the Automation.
create_time: Option<String>
Desc: The date and time the Automation was created in ISO 8601 format.
start_time: Option<String>
Desc: The date and time the Automation was started in ISO 8601 format.
status: Option<String>
Desc: The current status of the Automation.
emails_sent: Option<u64>
Desc: The total number of emails sent for the Automation.
recipients: Option<RecipientType>
Desc: List settings for the Automation.
settings: Option<AutomationCampaignSettingsType>
Desc: The settings for the Automation workflow.
tracking: Option<AutomationTrackingOptionsType>
Desc: The tracking options for the Automation.
trigger_settings: Option<AutomationTriggerType>
Desc: Available triggers for Automation workflows.
report_summary: Option<CampaignReportSummaryType>
Desc: A summary of opens, clicks, and unsubscribes for sent campaigns.
_links: Option<Vec<LinkType>>
Desc: A list of link types and descriptions for the API schema documents.
_api: MailchimpApi
Mailchimp APi
Implementations
sourceimpl AutomationWorkflowType
impl AutomationWorkflowType
sourcepub fn pause_all_emails(&self) -> Option<MailchimpErrorType>
pub fn pause_all_emails(&self) -> Option<MailchimpErrorType>
Detiene todos los emails para esta automatización
En caso de ser satisfactoria la ejecución, devuelve None, en caso contrario devuelve el error, con su respectiva descripción
sourcepub fn start_all_emails(&self) -> Option<MailchimpErrorType>
pub fn start_all_emails(&self) -> Option<MailchimpErrorType>
Inicia todos los emails para esta automatización
En caso de ser satisfactoria la ejecución, devuelve None, en caso contrario devuelve el error, con su respectiva descripción
sourcepub fn remote_update<'a>(
&self,
settings: Option<AutomationCampaignSettingsType>,
delay: Option<AutomationDelayType>
) -> Result<Self, MailchimpErrorType>
pub fn remote_update<'a>(
&self,
settings: Option<AutomationCampaignSettingsType>,
delay: Option<AutomationDelayType>
) -> Result<Self, MailchimpErrorType>
Actualiza la automatización y devuelve una instancia nueva
Argumentos: settings: Configuracion de la automatización a crear delay: Ajustes de retraso para un correo electrónico de automatización.
sourcepub fn get_workflow_emails(
&self
) -> Result<Vec<WorkflowEmailType>, MailchimpErrorType>
pub fn get_workflow_emails(
&self
) -> Result<Vec<WorkflowEmailType>, MailchimpErrorType>
============= EMAILS ============================
Devuelve una lista de los emails automatizados
sourcepub fn update_workflow_email<'a>(
&self,
workflow_email_id: &'a str,
settings: &AutomationCampaignSettingsType,
delay: &AutomationDelayType
) -> Result<WorkflowEmailType, MailchimpErrorType>
pub fn update_workflow_email<'a>(
&self,
workflow_email_id: &'a str,
settings: &AutomationCampaignSettingsType,
delay: &AutomationDelayType
) -> Result<WorkflowEmailType, MailchimpErrorType>
Update settings for a Automation workflow email, and return the Automation workflow email Updated
Argumentos: campaign_id: The unique id for the campaign. settings: Settings for the campaign including the email subject, from name, and from email address. delay: The delay settings for an automation email.
sourcepub fn delete_automation_workflow_email<'a>(
&self,
workflow_email_id: &'a str
) -> Option<MailchimpErrorType>
pub fn delete_automation_workflow_email<'a>(
&self,
workflow_email_id: &'a str
) -> Option<MailchimpErrorType>
Removes an individual Automation workflow email. Emails from certain workflow types, including the Abandoned Cart Email (abandonedCart) and Product Retargeting Email (abandonedBrowse) Workflows, cannot be deleted.
Argumentos: workflow_email_id: The unique id for the Automation workflow email.
sourcepub fn get_automation_workflow_email_info<'a>(
&self,
workflow_email_id: &'a str
) -> Result<WorkflowEmailType, MailchimpErrorType>
pub fn get_automation_workflow_email_info<'a>(
&self,
workflow_email_id: &'a str
) -> Result<WorkflowEmailType, MailchimpErrorType>
Devuelve la informacion sobre un flujo de trabajos de automatizacion de emails
Argumentos: workflow_email_id: Identificador único de la automatización
sourcepub fn get_subscribers_removed(
&self
) -> MalchimpIter<AutomationSubscriberBuilder> ⓘ
pub fn get_subscribers_removed(
&self
) -> MalchimpIter<AutomationSubscriberBuilder> ⓘ
View all subscribers removed from a workflow
Return Iterator
sourcepub fn add_subscriber_to_workflow<'a>(
&self,
email_address: &'a str
) -> Result<AutomationSubscriberType, MailchimpErrorType>
pub fn add_subscriber_to_workflow<'a>(
&self,
email_address: &'a str
) -> Result<AutomationSubscriberType, MailchimpErrorType>
Remove a subscriber from a specific Automation workflow. You can remove a subscriber at any point in an Automation workflow, regardless of how many emails they’ve been sent from that workflow. Once they’re removed, they can never be added back to the same workflow.
Arguments: email_address: The list member’s email address.
Trait Implementations
sourceimpl Clone for AutomationWorkflowType
impl Clone for AutomationWorkflowType
sourcefn clone(&self) -> AutomationWorkflowType
fn clone(&self) -> AutomationWorkflowType
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for AutomationWorkflowType
impl Debug for AutomationWorkflowType
sourceimpl<'de> Deserialize<'de> for AutomationWorkflowType
impl<'de> Deserialize<'de> for AutomationWorkflowType
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
sourceimpl MailchimpCollection<AutomationWorkflowType> for CollectionAutomation
impl MailchimpCollection<AutomationWorkflowType> for CollectionAutomation
sourcefn get_total_items(&self) -> u64
fn get_total_items(&self) -> u64
Total Items
sourcefn get_values(&self) -> Vec<AutomationWorkflowType>
fn get_values(&self) -> Vec<AutomationWorkflowType>
Data