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 duplicate 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
impl StructuralPartialEq for SegmentNotificationTarget
Auto Trait Implementations§
impl Freeze for SegmentNotificationTarget
impl RefUnwindSafe for SegmentNotificationTarget
impl Send for SegmentNotificationTarget
impl Sync for SegmentNotificationTarget
impl Unpin for SegmentNotificationTarget
impl UnwindSafe for SegmentNotificationTarget
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more