pub struct NotifySend {
pub body: Option<String>,
pub channel: Option<String>,
pub event: Option<String>,
pub provider: Option<String>,
pub subject: Option<String>,
pub sync: Option<String>,
pub template_id: Option<String>,
pub template_vars: Option<Option<Value>>,
pub to: Option<Vec<String>>,
}Fields§
§body: Option<String>Body is the message text, sent verbatim when present — the no-template path.
channel: Option<String>Channel selects the delivery channel, sms or email. The per-channel routes (/send/sms, /send/email) pin it, overriding whatever the body names; on the generic route it is required.
event: Option<String>Event is the event name, which doubles as the template id when TemplateID is empty — the IAM OTP path sends event=iam.otp_sent and nothing else.
provider: Option<String>Provider pins a provider service name (twilio, plivo, twilio_email, mail). Empty picks the one whose org credentials are actually configured in KMS.
subject: Option<String>Subject is the message subject, carried on the email channel only.
sync: Option<String>Sync must be exactly "true": delivery here is synchronous, and anything else answers 503 because the queue plane that would run an async dispatch is owned elsewhere. Over REST it rides as ?sync=true (the URL binds over the body); a by-name call states it in its arguments.
template_id: Option<String>TemplateID selects a built-in template when Body is empty.
template_vars: Option<Option<Value>>§to: Option<Vec<String>>To is the destination address per recipient — a phone number for sms, an email address for email. Several recipients fan out into one provider call each, and the response shape follows the count (see the items field).
Implementations§
Source§impl NotifySend
impl NotifySend
pub fn new() -> NotifySend
Trait Implementations§
Source§impl Clone for NotifySend
impl Clone for NotifySend
Source§fn clone(&self) -> NotifySend
fn clone(&self) -> NotifySend
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more