pub struct SendEventRequest {
pub header: SendEventRequestHeader,
pub body: EventRequest,
}Expand description
Send events to trigger workflows.
Fields§
§header: SendEventRequestHeader§body: EventRequestProvide either email or userId to identify the contact (read more).
Event properties will be available in emails sent by this event. Values of properties can be of type string, number, boolean or date (see allowed date formats).
Make sure to create the properties in Loops before using them in API calls.
You can add update the contact by adding contact properties as keys in this request (of type string, number, boolean or date (see available date formats)).
Implementations§
Source§impl SendEventRequest
impl SendEventRequest
Sourcepub async fn parse_response(req: Response) -> Result<SendEventResponse>
pub async fn parse_response(req: Response) -> Result<SendEventResponse>
Parse the HTTP response into the response enum.
Trait Implementations§
Source§impl Clone for SendEventRequest
impl Clone for SendEventRequest
Source§impl Debug for SendEventRequest
impl Debug for SendEventRequest
Source§impl Default for SendEventRequest
impl Default for SendEventRequest
Source§impl Validate for SendEventRequest
impl Validate for SendEventRequest
Source§impl<'v_a> ValidateArgs<'v_a> for SendEventRequest
impl<'v_a> ValidateArgs<'v_a> for SendEventRequest
Auto Trait Implementations§
impl Freeze for SendEventRequest
impl RefUnwindSafe for SendEventRequest
impl Send for SendEventRequest
impl Sync for SendEventRequest
impl Unpin for SendEventRequest
impl UnsafeUnpin for SendEventRequest
impl UnwindSafe for SendEventRequest
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