pub struct SegmentNotificationTarget {
pub included_segments: Option<Vec<String>>,
pub excluded_segments: Option<Vec<String>>,
}
Fields§
§included_segments: Option<Vec<String>>
The segment names you want to target. Users in these segments will receive a notification. This targeting parameter is only compatible with excluded_segments. Example: ["Active Users", "Inactive Users"]
excluded_segments: Option<Vec<String>>
Segment that will be excluded when sending. Users in these segments will not receive a notification, even if they were included in included_segments. This targeting parameter is only compatible with included_segments. Example: ["Active Users", "Inactive Users"]
Implementations§
source§impl SegmentNotificationTarget
impl SegmentNotificationTarget
pub fn new() -> SegmentNotificationTarget
Trait Implementations§
source§impl Clone for SegmentNotificationTarget
impl Clone for SegmentNotificationTarget
source§fn clone(&self) -> SegmentNotificationTarget
fn clone(&self) -> SegmentNotificationTarget
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for SegmentNotificationTarget
impl Debug for SegmentNotificationTarget
source§impl Default for SegmentNotificationTarget
impl Default for SegmentNotificationTarget
source§fn default() -> SegmentNotificationTarget
fn default() -> SegmentNotificationTarget
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for SegmentNotificationTarget
impl<'de> Deserialize<'de> for SegmentNotificationTarget
source§fn 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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq<SegmentNotificationTarget> for SegmentNotificationTarget
impl PartialEq<SegmentNotificationTarget> for SegmentNotificationTarget
source§fn eq(&self, other: &SegmentNotificationTarget) -> bool
fn eq(&self, other: &SegmentNotificationTarget) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.