pub struct AskQuestionOption {
pub label: String,
pub value: String,
}Expand description
A single selectable option in an interactive question prompt.
Maps to the Python SDK’s AskQuestionOption.
Fields§
§label: StringHuman-readable label displayed to the user.
value: StringMachine-readable value returned when this option is selected.
Trait Implementations§
Source§impl Clone for AskQuestionOption
impl Clone for AskQuestionOption
Source§fn clone(&self) -> AskQuestionOption
fn clone(&self) -> AskQuestionOption
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 AskQuestionOption
impl Debug for AskQuestionOption
Source§impl<'de> Deserialize<'de> for AskQuestionOption
impl<'de> Deserialize<'de> for AskQuestionOption
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
impl Eq for AskQuestionOption
Source§impl PartialEq for AskQuestionOption
impl PartialEq for AskQuestionOption
Source§fn eq(&self, other: &AskQuestionOption) -> bool
fn eq(&self, other: &AskQuestionOption) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for AskQuestionOption
impl Serialize for AskQuestionOption
impl StructuralPartialEq for AskQuestionOption
Auto Trait Implementations§
impl Freeze for AskQuestionOption
impl RefUnwindSafe for AskQuestionOption
impl Send for AskQuestionOption
impl Sync for AskQuestionOption
impl Unpin for AskQuestionOption
impl UnsafeUnpin for AskQuestionOption
impl UnwindSafe for AskQuestionOption
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