pub struct JourneyNode {Show 17 fields
pub id: Option<String>,
pub kind: KindType,
pub client_node_id: Option<String>,
pub annotation: Option<String>,
pub duration_seconds: Option<i32>,
pub relative_to: Option<RelativeToType>,
pub windows: Option<Vec<JourneyTimeWindow>>,
pub time_zone: Option<String>,
pub use_user_time_zone: Option<bool>,
pub template_id: Option<String>,
pub iam_id: Option<String>,
pub user_ttl_seconds: Option<i32>,
pub webhook_id: Option<String>,
pub assignments: Option<HashMap<String, String>>,
pub randomize_on_entry: Option<bool>,
pub branches: Option<Vec<JourneyBranch>>,
pub expiration: Option<Box<JourneyWaitUntilExpiration>>,
}Expand description
JourneyNode : A journey node. The kind field selects which other fields apply. Branching nodes (split_range, yes_no, wait_until) nest their sub-graphs inline via branches[].nodes.
Fields§
§id: Option<String>Server-assigned node UUID. Returned on reads. Required on update to keep an existing node. Rejected on create with a 400 validation error.
kind: KindTypeNode kind. Selects which other fields apply.
client_node_id: Option<String>Optional client-assigned identifier, unique within the journey. Use it to reference this node from elsewhere in the same request. Persisted and returned on reads.
annotation: Option<String>Optional free-text label, up to 255 characters. Stored and returned as-is with no effect on journey behavior.
duration_seconds: Option<i32>wait nodes: seconds to hold the user. Minimum 60, maximum 31556952 (1 year).
relative_to: Option<RelativeToType>time_window nodes: schedule_in_timezone uses the configured windows; last_active_time holds relative to the user’s last active time.
windows: Option<Vec<JourneyTimeWindow>>time_window nodes: one or more time windows. A window with no day_of_week applies to every day. Required when relative_to is schedule_in_timezone; omit when it is last_active_time.
time_zone: Option<String>time_window nodes: IANA timezone identifier used when the user’s timezone is unavailable.
use_user_time_zone: Option<bool>time_window nodes: when true, uses the user’s timezone if available.
template_id: Option<String>send_push, send_email, and send_sms nodes: UUID of the template to send.
iam_id: Option<String>send_iam nodes: UUID of the in-app message to send.
user_ttl_seconds: Option<i32>send_iam nodes: optional time-to-live for the in-app message, in seconds.
webhook_id: Option<String>send_webhook nodes: UUID of the webhook to send.
assignments: Option<HashMap<String, String>>tag nodes: tag key-value pairs to assign. An empty string value removes the tag. Keys are limited to 255 characters and values to 1024.
randomize_on_entry: Option<bool>split_range nodes: when true, assigns each user to a branch at random on entry. Defaults to false.
branches: Option<Vec<JourneyBranch>>Branching nodes: nested branches. split_range requires 2-20 weighted branches that sum to 100. yes_no requires exactly 2 branches. wait_until requires 1-10 condition branches.
expiration: Option<Box<JourneyWaitUntilExpiration>>Implementations§
Source§impl JourneyNode
impl JourneyNode
Sourcepub fn new(kind: KindType) -> JourneyNode
pub fn new(kind: KindType) -> JourneyNode
A journey node. The kind field selects which other fields apply. Branching nodes (split_range, yes_no, wait_until) nest their sub-graphs inline via branches[].nodes.
Trait Implementations§
Source§impl Clone for JourneyNode
impl Clone for JourneyNode
Source§fn clone(&self) -> JourneyNode
fn clone(&self) -> JourneyNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more