pub struct UserQuestion {
pub multiple_choice: Option<MultipleChoice>,
}Expand description
antigravity.localharness.UserQuestion
Fields§
§multiple_choice: Option<MultipleChoice>Implementations§
Source§impl UserQuestion
impl UserQuestion
Sourcepub fn into_question_type(self) -> Option<UserQuestionQuestionType>
pub fn into_question_type(self) -> Option<UserQuestionQuestionType>
Takes the set arm of the question_type oneof, if any.
Sourcepub fn has_question_type(&self) -> bool
pub fn has_question_type(&self) -> bool
True when any arm of the question_type oneof is set.
Trait Implementations§
Source§impl Clone for UserQuestion
impl Clone for UserQuestion
Source§fn clone(&self) -> UserQuestion
fn clone(&self) -> UserQuestion
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 UserQuestion
impl Debug for UserQuestion
Source§impl Default for UserQuestion
impl Default for UserQuestion
Source§fn default() -> UserQuestion
fn default() -> UserQuestion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UserQuestion
impl<'de> Deserialize<'de> for UserQuestion
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 UserQuestion
impl PartialEq for UserQuestion
Source§impl Serialize for UserQuestion
impl Serialize for UserQuestion
impl StructuralPartialEq for UserQuestion
Auto Trait Implementations§
impl Freeze for UserQuestion
impl RefUnwindSafe for UserQuestion
impl Send for UserQuestion
impl Sync for UserQuestion
impl Unpin for UserQuestion
impl UnsafeUnpin for UserQuestion
impl UnwindSafe for UserQuestion
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