Enum mailchimp_api::types::ConditionsOneOf
source · pub enum ConditionsOneOf {
Show 41 variants
Conditions(Conditions),
AutomationSegment(AutomationSegment),
PollActivitySegment(PollActivitySegment),
ConversationSegment(ConversationSegment),
DateSegment(DateSegment),
EmailClientSegment(EmailClientSegment),
LanguageSegment(LanguageSegment),
MemberRatingSegment(MemberRatingSegment),
SignupSourceSegment(SignupSourceSegment),
SurveyMonkeySegment(SurveyMonkeySegment),
VipSegment(VipSegment),
InterestsSegment(InterestsSegment),
EcommerceCategorySegment(EcommerceCategorySegment),
EcommerceNumberSegment(EcommerceNumberSegment),
EcommercePurchasedSegment(EcommercePurchasedSegment),
EcommerceSpentSegment(EcommerceSpentSegment),
EcommercePurchasedStoreSegment(EcommercePurchasedStoreSegment),
GoalActivitySegment(GoalActivitySegment),
GoalTimestampSegment(GoalTimestampSegment),
SimilarSubscribersSegmentMember(SimilarSubscribersSegmentMember),
StaticSegmentMember(StaticSegmentMember),
LocationBasedSegment(LocationBasedSegment),
GeolocationSegment(GeolocationSegment),
UsZipCodeSegment(UsZipCodeSegment),
UnknownLocationBasedSegment(UnknownLocationBasedSegment),
ZipCodeLocationBasedSegment(ZipCodeLocationBasedSegment),
SocialProfilesAgeSegment(SocialProfilesAgeSegment),
SocialProfilesGenderSegment(SocialProfilesGenderSegment),
SocialProfilesInfluenceSegment(SocialProfilesInfluenceSegment),
SocialProfilesNetworkSegment(SocialProfilesNetworkSegment),
SocialProfilesNetworkFollowSegment(SocialProfilesNetworkFollowSegment),
AddressMergeFieldSegment(AddressMergeFieldSegment),
AddressZipMergeFieldSegment(AddressZipMergeFieldSegment),
BirthdayMergeFieldSegment(BirthdayMergeFieldSegment),
DateMergeFieldSegment(DateMergeFieldSegment),
DropdownRadioMergeFieldSegment(DropdownRadioMergeFieldSegment),
TextNumberMergeFieldSegment(TextNumberMergeFieldSegment),
EmailSegment(EmailSegment),
PredictedGenderSegment(PredictedGenderSegment),
PredictedAgeSegment(PredictedAgeSegment),
NewSubscribersPrebuiltSegment(NewSubscribersPrebuiltSegment),
}
Expand description
All of the following types:
Conditions
AutomationSegment
PollActivitySegment
ConversationSegment
DateSegment
EmailClientSegment
LanguageSegment
MemberRatingSegment
SignupSourceSegment
SurveyMonkeySegment
VipSegment
InterestsSegment
EcommerceCategorySegment
EcommerceNumberSegment
EcommercePurchasedSegment
EcommerceSpentSegment
EcommercePurchasedStoreSegment
GoalActivitySegment
GoalTimestampSegment
SimilarSubscribersSegmentMember
StaticSegmentMember
LocationBasedSegment
GeolocationSegment
UsZipCodeSegment
UnknownLocationBasedSegment
ZipCodeLocationBasedSegment
SocialProfilesAgeSegment
SocialProfilesGenderSegment
SocialProfilesInfluenceSegment
SocialProfilesNetworkSegment
SocialProfilesNetworkFollowSegment
AddressMergeFieldSegment
AddressZipMergeFieldSegment
BirthdayMergeFieldSegment
DateMergeFieldSegment
DropdownRadioMergeFieldSegment
TextNumberMergeFieldSegment
EmailSegment
PredictedGenderSegment
PredictedAgeSegment
NewSubscribersPrebuiltSegment
You can easily convert this enum to the inner value with From
and Into
, as both are implemented for each type.
Variants
Conditions(Conditions)
Segment by interaction with a specific campaign.
AutomationSegment(AutomationSegment)
Segment by interaction with an Automation workflow.
PollActivitySegment(PollActivitySegment)
Segment by poll activity.
ConversationSegment(ConversationSegment)
Segment by interaction with a campaign via Conversations.
DateSegment(DateSegment)
Segment by a specific date field.
EmailClientSegment(EmailClientSegment)
Segment by use of a particular email client.
LanguageSegment(LanguageSegment)
Segment by language.
MemberRatingSegment(MemberRatingSegment)
Segment by member rating.
SignupSourceSegment(SignupSourceSegment)
Segment by signup source.
SurveyMonkeySegment(SurveyMonkeySegment)
Segment by interaction with a SurveyMonkey survey.
VipSegment(VipSegment)
Segment by VIP status.
InterestsSegment(InterestsSegment)
Segment by an interest group merge field.
EcommerceCategorySegment(EcommerceCategorySegment)
Segment by purchases in specific items or categories.
EcommerceNumberSegment(EcommerceNumberSegment)
Segment by average spent total, number of orders, total number of products purchased, or average number of products per order.
EcommercePurchasedSegment(EcommercePurchasedSegment)
Segment by whether someone has purchased anything.
EcommerceSpentSegment(EcommerceSpentSegment)
Segment by amount spent on a single order or across all orders.
EcommercePurchasedStoreSegment(EcommercePurchasedStoreSegment)
Segment by purchases from a specific store.
GoalActivitySegment(GoalActivitySegment)
Segment by Goal activity.
GoalTimestampSegment(GoalTimestampSegment)
Segment by most recent interaction with a website.
SimilarSubscribersSegmentMember(SimilarSubscribersSegmentMember)
Segment by similar subscribers.
StaticSegmentMember(StaticSegmentMember)
Segment by a given static segment.
LocationBasedSegment(LocationBasedSegment)
Segment by a specific country or US state.
GeolocationSegment(GeolocationSegment)
Segment by a specific geographic region.
UsZipCodeSegment(UsZipCodeSegment)
Segment by a specific US ZIP code.
UnknownLocationBasedSegment(UnknownLocationBasedSegment)
Segment members whose location information is unknown.
ZipCodeLocationBasedSegment(ZipCodeLocationBasedSegment)
Segment by a specific US ZIP code.
SocialProfilesAgeSegment(SocialProfilesAgeSegment)
Segment by age ranges in Social Profiles data.
SocialProfilesGenderSegment(SocialProfilesGenderSegment)
Segment by listed gender in Social Profiles data.
SocialProfilesInfluenceSegment(SocialProfilesInfluenceSegment)
Segment by influence rating in Social Profiles data.
SocialProfilesNetworkSegment(SocialProfilesNetworkSegment)
Segment by social network in Social Profiles data.
SocialProfilesNetworkFollowSegment(SocialProfilesNetworkFollowSegment)
Segment by social network in Social Profiles data.
AddressMergeFieldSegment(AddressMergeFieldSegment)
Segment by an address-type merge field.
AddressZipMergeFieldSegment(AddressZipMergeFieldSegment)
Segment by an address-type merge field within a given distance.
BirthdayMergeFieldSegment(BirthdayMergeFieldSegment)
Segment by a contact’s birthday.
DateMergeFieldSegment(DateMergeFieldSegment)
Segment by a given date merge field.
DropdownRadioMergeFieldSegment(DropdownRadioMergeFieldSegment)
An individual segment condition
TextNumberMergeFieldSegment(TextNumberMergeFieldSegment)
Segment by a given text or number merge field.
EmailSegment(EmailSegment)
Segment by email address.
PredictedGenderSegment(PredictedGenderSegment)
Segment by predicted gender.
PredictedAgeSegment(PredictedAgeSegment)
Segment by predicted age.
NewSubscribersPrebuiltSegment(NewSubscribersPrebuiltSegment)
Segment by when people subscribed.
Implementations
sourceimpl ConditionsOneOf
impl ConditionsOneOf
pub fn address_merge_field_segment(&self) -> Option<&AddressMergeFieldSegment>
pub fn address_zip_merge_field_segment(
&self
) -> Option<&AddressZipMergeFieldSegment>
pub fn automation_segment(&self) -> Option<&AutomationSegment>
pub fn birthday_merge_field_segment(&self) -> Option<&BirthdayMergeFieldSegment>
pub fn conditions(&self) -> Option<&Conditions>
pub fn conversation_segment(&self) -> Option<&ConversationSegment>
pub fn date_merge_field_segment(&self) -> Option<&DateMergeFieldSegment>
pub fn date_segment(&self) -> Option<&DateSegment>
pub fn dropdown_radio_merge_field_segment(
&self
) -> Option<&DropdownRadioMergeFieldSegment>
pub fn ecommerce_category_segment(&self) -> Option<&EcommerceCategorySegment>
pub fn ecommerce_number_segment(&self) -> Option<&EcommerceNumberSegment>
pub fn ecommerce_purchased_segment(&self) -> Option<&EcommercePurchasedSegment>
pub fn ecommerce_purchased_store_segment(
&self
) -> Option<&EcommercePurchasedStoreSegment>
pub fn ecommerce_spent_segment(&self) -> Option<&EcommerceSpentSegment>
pub fn email_client_segment(&self) -> Option<&EmailClientSegment>
pub fn email_segment(&self) -> Option<&EmailSegment>
pub fn geolocation_segment(&self) -> Option<&GeolocationSegment>
pub fn goal_activity_segment(&self) -> Option<&GoalActivitySegment>
pub fn goal_timestamp_segment(&self) -> Option<&GoalTimestampSegment>
pub fn interests_segment(&self) -> Option<&InterestsSegment>
pub fn language_segment(&self) -> Option<&LanguageSegment>
pub fn location_based_segment(&self) -> Option<&LocationBasedSegment>
pub fn member_rating_segment(&self) -> Option<&MemberRatingSegment>
pub fn new_subscribers_prebuilt_segment(
&self
) -> Option<&NewSubscribersPrebuiltSegment>
pub fn poll_activity_segment(&self) -> Option<&PollActivitySegment>
pub fn predicted_age_segment(&self) -> Option<&PredictedAgeSegment>
pub fn predicted_gender_segment(&self) -> Option<&PredictedGenderSegment>
pub fn signup_source_segment(&self) -> Option<&SignupSourceSegment>
pub fn similar_subscribers_segment_member(
&self
) -> Option<&SimilarSubscribersSegmentMember>
pub fn static_segment_member(&self) -> Option<&StaticSegmentMember>
pub fn survey_monkey_segment(&self) -> Option<&SurveyMonkeySegment>
pub fn text_number_merge_field_segment(
&self
) -> Option<&TextNumberMergeFieldSegment>
pub fn unknown_location_based_segment(
&self
) -> Option<&UnknownLocationBasedSegment>
pub fn us_zip_code_segment(&self) -> Option<&UsZipCodeSegment>
pub fn vip_segment(&self) -> Option<&VipSegment>
pub fn zip_code_location_based_segment(
&self
) -> Option<&ZipCodeLocationBasedSegment>
Trait Implementations
sourceimpl Clone for ConditionsOneOf
impl Clone for ConditionsOneOf
sourcefn clone(&self) -> ConditionsOneOf
fn clone(&self) -> ConditionsOneOf
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresourceimpl Debug for ConditionsOneOf
impl Debug for ConditionsOneOf
sourceimpl<'de> Deserialize<'de> for ConditionsOneOf
impl<'de> Deserialize<'de> for ConditionsOneOf
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 JsonSchema for ConditionsOneOf
impl JsonSchema for ConditionsOneOf
sourcefn schema_name() -> String
fn schema_name() -> String
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
sourcefn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read more