pub struct FormQuestion {
pub label: Option<String>,
pub key: String,
pub type_: String,
pub options: Vec<FormQuestionOption>,
}Available on crate feature
ad-publishing only.Expand description
FormQuestion from the GoHighLevel OpenAPI spec.
Fields§
§label: Option<String>Question label text shown to the user
key: StringQuestion key Required by the API.
type_: StringQuestion input type — use a prefilled type for standard fields or CUSTOM / SHORT_ANSWER
for freeform questions
Allowed values: CUSTOM, CITY, COMPANY_NAME, COUNTRY, DATE_OF_BIRTH, EMAIL,
FIRST_NAME, FULL_NAME, GENDER, JOB_TITLE, LAST_NAME, MARITIAL_STATUS.
Required by the API.
options: Vec<FormQuestionOption>Answer options for multiple-choice questions (only applies to CUSTOM type)
Trait Implementations§
Source§impl Clone for FormQuestion
impl Clone for FormQuestion
Source§fn clone(&self) -> FormQuestion
fn clone(&self) -> FormQuestion
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 FormQuestion
impl Debug for FormQuestion
Source§impl Default for FormQuestion
impl Default for FormQuestion
Source§fn default() -> FormQuestion
fn default() -> FormQuestion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for FormQuestion
impl<'de> Deserialize<'de> for FormQuestion
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 FormQuestion
impl RefUnwindSafe for FormQuestion
impl Send for FormQuestion
impl Sync for FormQuestion
impl Unpin for FormQuestion
impl UnsafeUnpin for FormQuestion
impl UnwindSafe for FormQuestion
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