Skip to main content

WidgetSettingsDTO

Struct WidgetSettingsDTO 

Source
pub struct WidgetSettingsDTO {
Show 46 fields pub acknowledgement_details: Option<AcknowledgementDetailsDTO>, pub agency_name: Option<String>, pub agency_website: Option<String>, pub allow_avatar_image: Option<bool>, pub auto_country_code: Option<bool>, pub country_code: Option<String>, pub chat_type: String, pub prompt_type: Option<String>, pub chat_icon: String, pub enable_revisit_message: Option<bool>, pub heading: Option<String>, pub legal_msg: Option<String>, pub live_chat_ack_msg: Option<String>, pub live_chat_ended_msg: Option<String>, pub live_chat_feedback_msg: Option<String>, pub live_chat_feedback_note: Option<String>, pub live_chat_intro_msg: Option<String>, pub live_chat_user_inactive_msg: Option<String>, pub live_chat_user_inactive_time: Option<String>, pub live_chat_visitor_inactive_msg: Option<String>, pub live_chat_visitor_inactive_time: Option<String>, pub locale: Option<String>, pub prompt_avatar: Option<String>, pub prompt_avatar_alt_text: Option<String>, pub is_prompt_avatar_image_optimize: Option<bool>, pub prompt_msg: Option<String>, pub revisit_prompt_msg: Option<String>, pub send_action_text: Option<String>, pub show_agency_branding: Option<bool>, pub show_consent_checkbox: Option<bool>, pub show_live_chat_welcome_msg: Option<bool>, pub show_prompt: Option<bool>, pub sub_heading: Option<String>, pub success_msg: Option<String>, pub support_contact: Option<String>, pub thank_you_msg: Option<String>, pub theme: Option<WidgetSettingsThemeDTO>, pub use_email_field: Option<bool>, pub wa_number: Option<String>, pub widget_primary_color: Option<String>, pub representative_assigned_message: Option<String>, pub dimensions: Option<WidgetSettingsCustomizationDTO>, pub advance_settings: Option<AdvanceSettingsDTO>, pub location_country_code: Option<String>, pub widget_id: Option<String>, pub widget_placement: Option<String>,
}
Available on crate feature chat-widget only.
Expand description

WidgetSettingsDTO from the GoHighLevel OpenAPI spec.

Fields§

§acknowledgement_details: Option<AcknowledgementDetailsDTO>

Acknowledgement Details

§agency_name: Option<String>

Name of the agency

§agency_website: Option<String>

Website URL of the agency

§allow_avatar_image: Option<bool>

Allow avatar image

§auto_country_code: Option<bool>

Boolean indicating whether to automatically detect country code

§country_code: Option<String>

Country code

§chat_type: String

Chat Type Required by the API.

§prompt_type: Option<String>

Prompt Type

§chat_icon: String

Message Chat Circle Required by the API.

§enable_revisit_message: Option<bool>

Boolean indicating whether to enable a revisit message

§heading: Option<String>

Heading text

§legal_msg: Option<String>

Legal message

§live_chat_ack_msg: Option<String>

Message acknowledging a live chat

§live_chat_ended_msg: Option<String>

Message indicating the end of a live chat

§live_chat_feedback_msg: Option<String>

Message asking for feedback after a live chat

§live_chat_feedback_note: Option<String>

Note regarding live chat feedback

§live_chat_intro_msg: Option<String>

Introduction message for a live chat

§live_chat_user_inactive_msg: Option<String>

Message for inactive users during a live chat

§live_chat_user_inactive_time: Option<String>

Time for considering a user inactive during a live chat

§live_chat_visitor_inactive_msg: Option<String>

Message for inactive visitors during a live chat

§live_chat_visitor_inactive_time: Option<String>

Time for considering a visitor inactive during a live chat

§locale: Option<String>

Locale setting

§prompt_avatar: Option<String>

Avatar for prompts

§prompt_avatar_alt_text: Option<String>

Prompt Avatar Alt Text

§is_prompt_avatar_image_optimize: Option<bool>

Avatar Image Optimization

§prompt_msg: Option<String>

Prompt message

§revisit_prompt_msg: Option<String>

Message for revisiting prompts

§send_action_text: Option<String>

Text for send action

§show_agency_branding: Option<bool>

Boolean indicating whether to show agency branding

§show_consent_checkbox: Option<bool>

Boolean indicating whether to show a consent checkbox

§show_live_chat_welcome_msg: Option<bool>

Boolean indicating whether to show a welcome message for live chat

§show_prompt: Option<bool>

Boolean indicating whether to show prompts

§sub_heading: Option<String>

Subheading text

§success_msg: Option<String>

Success message

§support_contact: Option<String>

Contact information for support

§thank_you_msg: Option<String>

Thank you message

§theme: Option<WidgetSettingsThemeDTO>

Theme

§use_email_field: Option<bool>

Boolean indicating whether to use an email field

§wa_number: Option<String>

WhatsApp number

§widget_primary_color: Option<String>

Primary color for the widget

§representative_assigned_message: Option<String>

Representative Assigned Message

§dimensions: Option<WidgetSettingsCustomizationDTO>

Customizations

§advance_settings: Option<AdvanceSettingsDTO>

Advance Settings

§location_country_code: Option<String>

Location Country Code

§widget_id: Option<String>

Widget Id

§widget_placement: Option<String>

Widget Placement

Trait Implementations§

Source§

impl Clone for WidgetSettingsDTO

Source§

fn clone(&self) -> WidgetSettingsDTO

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for WidgetSettingsDTO

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for WidgetSettingsDTO

Source§

fn default() -> WidgetSettingsDTO

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for WidgetSettingsDTO

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for WidgetSettingsDTO

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.