pub struct CreateActionDTO {
pub type_: String,
pub name: String,
pub details: Value,
}Available on crate feature
conversation-ai only.Expand description
CreateActionDTO from the GoHighLevel OpenAPI spec.
Fields§
§type_: StringAllowed values: triggerWorkflow, updateContactField, appointmentBooking,
stopBot, humanHandOver, advancedFollowup, transferBot.
Required by the API.
name: StringRequired by the API.
details: ValueAction-specific details. The structure depends on the action type. For TRIGGER_WORKFLOW use triggerWorkflowDto, for UPDATE_CONTACT_FIELD use updateContactFieldDto, for APPOINTMENT_BOOKING use appointmentBookingDto, for STOP_BOT use stopBotDto, for HUMAN_HAND_OVER use humanHandOverDto, for ADVANCED_FOLLOWUP use advancedFollowupDto, and for TRANSFER_BOT use transferBotDto. Multiple possible shapes in the spec; raw JSON. Required by the API.
Trait Implementations§
Source§impl Clone for CreateActionDTO
impl Clone for CreateActionDTO
Source§fn clone(&self) -> CreateActionDTO
fn clone(&self) -> CreateActionDTO
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateActionDTO
impl Debug for CreateActionDTO
Source§impl Default for CreateActionDTO
impl Default for CreateActionDTO
Source§fn default() -> CreateActionDTO
fn default() -> CreateActionDTO
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateActionDTO
impl<'de> Deserialize<'de> for CreateActionDTO
Source§fn 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
Auto Trait Implementations§
impl Freeze for CreateActionDTO
impl RefUnwindSafe for CreateActionDTO
impl Send for CreateActionDTO
impl Sync for CreateActionDTO
impl Unpin for CreateActionDTO
impl UnsafeUnpin for CreateActionDTO
impl UnwindSafe for CreateActionDTO
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