pub struct QuestionLocale {
pub text: String,
pub options: Vec<String>,
pub explanation: String,
}Expand description
A single translated question.
Fields§
§text: String§options: Vec<String>§explanation: StringTrait Implementations§
Source§impl Clone for QuestionLocale
impl Clone for QuestionLocale
Source§fn clone(&self) -> QuestionLocale
fn clone(&self) -> QuestionLocale
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 QuestionLocale
impl Debug for QuestionLocale
Source§impl<'de> Deserialize<'de> for QuestionLocale
impl<'de> Deserialize<'de> for QuestionLocale
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 QuestionLocale
impl PartialEq for QuestionLocale
Source§fn eq(&self, other: &QuestionLocale) -> bool
fn eq(&self, other: &QuestionLocale) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuestionLocale
Auto Trait Implementations§
impl Freeze for QuestionLocale
impl RefUnwindSafe for QuestionLocale
impl Send for QuestionLocale
impl Sync for QuestionLocale
impl Unpin for QuestionLocale
impl UnsafeUnpin for QuestionLocale
impl UnwindSafe for QuestionLocale
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