pub struct SendNotificationConfig {
pub type: String,
pub template_id: String,
pub template_version: i32,
pub action_label: String,
pub action_type: i32,
pub custom_variables: HashMap<String, String>,
}Expand description
Configuration for a step that sends the initial push notification.
Fields§
§type: StringNotification delivery type (e.g. “push”). Constraints: Accepted values: “push”. Max length 50 characters.
template_id: StringID of the template to use for this step’s notification. Empty falls back to campaign-level template_id. Constraints: Max length 36 characters (UUID).
template_version: i32Pinned template version for this step. 0 falls back to campaign-level template_version.
action_label: StringDisplay label for the action button (e.g. “Acknowledge”, “Got it”). Constraints: Max length 50 characters.
action_type: i32Action type for this step’s message button.
custom_variables: HashMap<String, String>Values for custom-sourced template variables specific to this step. Constraints: Max 100 entries. Key max length 100 characters, value max length 10000 characters.
Implementations§
Source§impl SendNotificationConfig
impl SendNotificationConfig
Sourcepub fn action_type(&self) -> ActionType
pub fn action_type(&self) -> ActionType
Returns the enum value of action_type, or the default if the field is set to an invalid enum value.
Sourcepub fn set_action_type(&mut self, value: ActionType)
pub fn set_action_type(&mut self, value: ActionType)
Sets action_type to the provided enum value.
Trait Implementations§
Source§impl Clone for SendNotificationConfig
impl Clone for SendNotificationConfig
Source§fn clone(&self) -> SendNotificationConfig
fn clone(&self) -> SendNotificationConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SendNotificationConfig
impl Debug for SendNotificationConfig
Source§impl Default for SendNotificationConfig
impl Default for SendNotificationConfig
Source§impl Message for SendNotificationConfig
impl Message for SendNotificationConfig
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.Source§impl PartialEq for SendNotificationConfig
impl PartialEq for SendNotificationConfig
impl StructuralPartialEq for SendNotificationConfig
Auto Trait Implementations§
impl Freeze for SendNotificationConfig
impl RefUnwindSafe for SendNotificationConfig
impl Send for SendNotificationConfig
impl Sync for SendNotificationConfig
impl Unpin for SendNotificationConfig
impl UnsafeUnpin for SendNotificationConfig
impl UnwindSafe for SendNotificationConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request