[][src]Struct mailchimp::types::ListInterest

pub struct ListInterest {
    pub category_id: String,
    pub list_id: String,
    pub id: String,
    pub name: String,
    pub subscriber_count: String,
    pub display_order: u64,
    pub _links: Vec<LinkType>,
    // some fields omitted
}

Interests

Manage interests for a specific Mailchimp list. Assign subscribers to interests to group them together. Interests are referred to as ‘group names’ in the Mailchimp application. Learn more about using groups in Mailchimp.

Fields

category_id: String

The id for the interest category.

list_id: String

The ID for the list that this interest belongs to.

id: String

The ID for the interest.

name: String

The name of the interest. This can be shown publicly on a subscription form.

subscriber_count: String

The number of subscribers associated with this interest.

display_order: u64

The display order for interests.

_links: Vec<LinkType>

A list of link types and descriptions for the API schema documents.

Methods

impl ListInterest[src]

pub fn set_api(&mut self, n_api: &MailchimpApi)[src]

Update the api instance

pub fn set_endpoint<'a>(&mut self, n_endpoint: &'a str)[src]

Update the endpoint value

pub fn delete(&self) -> Option<MailchimpErrorType>[src]

Delete interests or group names in a specific category.

pub fn update<'a>(
    &self,
    param: InterestParam
) -> Result<ListInterest, MailchimpErrorType>
[src]

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

Arguments: param: Values tu update

Trait Implementations

impl MailchimpCollection<ListInterest> for CollectionListInterest[src]

fn get_total_items(&self) -> u64[src]

Total Items

fn get_values(&self) -> Vec<ListInterest>[src]

Data

impl Clone for ListInterest[src]

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

Performs copy-assignment from source. Read more

impl Debug for ListInterest[src]

impl Serialize for ListInterest[src]

impl<'de> Deserialize<'de> for ListInterest[src]

Auto Trait Implementations

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

impl<T, U> TryInto 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> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Erased for T

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

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