[][src]Struct mailchimp::types::ListInterestCategory

pub struct ListInterestCategory {
    pub list_id: String,
    pub id: String,
    pub title: String,
    pub display_order: u64,
    pub ic_type: String,
    pub _links: Vec<LinkType>,
    // some fields omitted
}

Interest Categories

Manage interest categories for a specific list. Interest categories organize interests, which are used to group subscribers based on their preferences. These correspond to ‘group titles’ in the Mailchimp application. Learn more about groups in Mailchimp.

Fields

list_id: String

The unique list id for the category.

id: String

The id for the interest category.

title: String

The text description of this category. This field appears on signup forms and is often phrased as a question.

display_order: u64

The order that the categories are displayed in the list. Lower numbers display first.

ic_type: String

Determines how this category’s interests appear on signup forms. Possible Values: checkboxes dropdown radio hidden

_links: Vec<LinkType>

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

Methods

impl ListInterestCategory[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 a specific note for a specific list member.

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

Update a specific note for a specific list member.

Arguments: param: Values tu update

Important traits for MalchimpIter<B>
pub fn get_interests(
    &self,
    filters: Option<SimpleFilter>
) -> MalchimpIter<ListInterestBuilder>
[src]

Get a list of this category’s interests.

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

Create a new interest in a specific category

Argument: note: The content of the note. Note length is limited to 1,000 characters.

pub fn get_specific_interest<'a>(
    &self,
    interest_id: &'a str
) -> Result<ListInterestCategory, MailchimpErrorType>
[src]

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

Argument: interest_id: The specific interest or ‘group name’.

Trait Implementations

impl MailchimpCollection<ListInterestCategory> for CollectionListInterestCategories[src]

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

Total Items

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

Data

impl Clone for ListInterestCategory[src]

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

Performs copy-assignment from source. Read more

impl Debug for ListInterestCategory[src]

impl Serialize for ListInterestCategory[src]

impl<'de> Deserialize<'de> for ListInterestCategory[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