Struct onesignal_rust_api::models::segment_notification_target::SegmentNotificationTarget
source · [−]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
sourceimpl SegmentNotificationTarget
impl SegmentNotificationTarget
pub fn new() -> SegmentNotificationTarget
Trait Implementations
sourceimpl Clone for SegmentNotificationTarget
impl Clone for SegmentNotificationTarget
sourcefn clone(&self) -> SegmentNotificationTarget
fn clone(&self) -> SegmentNotificationTarget
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SegmentNotificationTarget
impl Debug for SegmentNotificationTarget
sourceimpl Default for SegmentNotificationTarget
impl Default for SegmentNotificationTarget
sourcefn default() -> SegmentNotificationTarget
fn default() -> SegmentNotificationTarget
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for SegmentNotificationTarget
impl<'de> Deserialize<'de> for SegmentNotificationTarget
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>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl PartialEq<SegmentNotificationTarget> for SegmentNotificationTarget
impl PartialEq<SegmentNotificationTarget> for SegmentNotificationTarget
sourcefn eq(&self, other: &SegmentNotificationTarget) -> bool
fn eq(&self, other: &SegmentNotificationTarget) -> bool
sourceimpl Serialize for SegmentNotificationTarget
impl Serialize for SegmentNotificationTarget
impl StructuralPartialEq for SegmentNotificationTarget
Auto Trait Implementations
impl RefUnwindSafe for SegmentNotificationTarget
impl Send for SegmentNotificationTarget
impl Sync for SegmentNotificationTarget
impl Unpin for SegmentNotificationTarget
impl UnwindSafe for SegmentNotificationTarget
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more