pub struct Options(pub Vec<(String, Value)>);Expand description
A Choice’s options, sent as a JSON object in the order they were given.
Tuple Fields§
§0: Vec<(String, Value)>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Options
impl<'de> Deserialize<'de> for Options
Source§fn deserialize<D: Deserializer<'de>>(
deserializer: D,
) -> Result<Options, D::Error>
fn deserialize<D: Deserializer<'de>>( deserializer: D, ) -> Result<Options, D::Error>
Keeps the options in the order the JSON has them.
impl StructuralPartialEq for Options
Auto Trait Implementations§
impl Freeze for Options
impl RefUnwindSafe for Options
impl Send for Options
impl Sync for Options
impl Unpin for Options
impl UnsafeUnpin for Options
impl UnwindSafe for Options
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