[][src]Struct mailchimp::Automations

pub struct Automations { /* fields omitted */ }

Implement Mailchimp Automations Endpoint

Mailchimp’s free Automation feature lets you build a series of emails that send to subscribers when triggered by a specific date, activity, or event. Use the API to manage Automation workflows, emails, and queues

Methods

impl Automations[src]

pub fn new(api: MailchimpApi) -> Self[src]

mentos: api: MailchimpApi

pub fn get_automations_from_remote(
    &self,
    filters: Option<&AutomationsFilter>
) -> Option<CollectionAutomation>
[src]

Devuelve información de las listas creadas

Argumentos: filters: Filtros que se requieran aplicar a la hora de obtener las automatizaciones Estos filtros se deben pasar en forma de llave, valor donde las llaves puede ser cualquiera de los siguientes: fields: listado de campos deseados, separados por coma exclude_fields: listado de campos excluidos, separados por coma count: Número de registros a devolver offset: El número de registros de una colección a saltar before_date_created: Restrict response to lists created before the set date. since_date_created: Restrict results to lists created after the set date. before_campaign_last_sent: Restrict results to lists created before the last campaign send date. since_campaign_last_sent: Restrict results to lists created after the last campaign send date. email: Restrict results to lists that include a specific subscriber’s email address. sort_field: Returns files sorted by the specified field. sort_dir: Determines the order direction for sorted results. folder_id: The unique folder id. list_id: The unique id for the list.

pub fn get_automation_workflow_info<'a>(
    &self,
    workflow_id: &'a str,
    filters: HashMap<String, String>
) -> Result<AutomationWorkflowType, MailchimpErrorType>
[src]

Devuelve la informacion de la automatizacion especificada

Argumentos: workflow_id: Identificador único de la automatización filters: Filtros requeridos a la hora de obtener las automatizaciones Estos filtros se deben pasar en forma de llave, valor donde las llaves puede ser cualquiera de los siguientes: fields: Una lista de campos separados por comas para devolver. Parámetros de referencia de subobjetos con notación de puntos. exclude_fields: Una lista de campos separados por comas para excluir. Parámetros de referencia de subobjetos con notación de puntos.

pub fn create_automation<'a>(
    &self,
    recipients: RecipientType,
    trigger_settings: AutomationTriggerType,
    settings: Option<AutomationCampaignSettingsType>
) -> Result<AutomationWorkflowType, MailchimpErrorType>
[src]

Crea una automatización

Argumentos: recipients: Contenedores para esta automatización trigger_settings: Configuracion de los disparadores settings: Configuracion de la automatización a crear

Important traits for MalchimpIter<B>
pub fn iter(
    &self,
    filters: AutomationsFilter
) -> MalchimpIter<AutomationsBuilder>
[src]

Función para recorrer todas las campañas exitentes. A diferencia de la anterior esta función te devuelve un iterador

Trait Implementations

impl Clone for Automations[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Automations[src]

Auto Trait Implementations

impl Send for Automations

impl Sync for Automations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Err = <U as TryFrom<T>>::Err