pub struct PromptChoice {
pub value: String,
pub label: String,
}Expand description
PromptChoice : Serializer for a single Choice field
Fields§
§value: String§label: StringImplementations§
Source§impl PromptChoice
impl PromptChoice
Sourcepub fn new(value: String, label: String) -> PromptChoice
pub fn new(value: String, label: String) -> PromptChoice
Serializer for a single Choice field
Trait Implementations§
Source§impl Clone for PromptChoice
impl Clone for PromptChoice
Source§fn clone(&self) -> PromptChoice
fn clone(&self) -> PromptChoice
Returns a duplicate of the value. Read more
1.0.0 · 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 PromptChoice
impl Debug for PromptChoice
Source§impl Default for PromptChoice
impl Default for PromptChoice
Source§fn default() -> PromptChoice
fn default() -> PromptChoice
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PromptChoice
impl<'de> Deserialize<'de> for PromptChoice
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
Source§impl PartialEq for PromptChoice
impl PartialEq for PromptChoice
Source§impl Serialize for PromptChoice
impl Serialize for PromptChoice
impl StructuralPartialEq for PromptChoice
Auto Trait Implementations§
impl Freeze for PromptChoice
impl RefUnwindSafe for PromptChoice
impl Send for PromptChoice
impl Sync for PromptChoice
impl Unpin for PromptChoice
impl UnsafeUnpin for PromptChoice
impl UnwindSafe for PromptChoice
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