[−][src]Struct mailchimp::types::ListInterestCategory
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]
&self,
param: InterestCategoryParam
) -> Result<ListInterestCategory, MailchimpErrorType>
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]
&self,
filters: Option<SimpleFilter>
) -> MalchimpIter<ListInterestBuilder>
Get a list of this category’s interests.
pub fn create_interest<'a>(
&self,
param: InterestParam
) -> Result<ListInterest, MailchimpErrorType>
[src]
&self,
param: InterestParam
) -> Result<ListInterest, MailchimpErrorType>
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]
&self,
interest_id: &'a str
) -> Result<ListInterestCategory, MailchimpErrorType>
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(&self) -> 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]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de> Deserialize<'de> for ListInterestCategory
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl Send for ListInterestCategory
impl Sync for ListInterestCategory
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>,