pub enum QuestionField {
Text(usize),
Dynamic(Option<Transform>),
}
Expand description
The type of field to be used for displaying question text.
Variants§
Text(usize)
Index of the text sticker to be used as the question field.
Dynamic(Option<Transform>)
When the teacher hasn’t added or selected a text sticker, a dynamic label will be added to display the question. The teacher can move this around.
Note (Ty): We won’t make use of the scale field right now, but at some point we should add the ability to scale the label text
Implementations§
Source§impl QuestionField
impl QuestionField
Trait Implementations§
Source§impl Clone for QuestionField
impl Clone for QuestionField
Source§fn clone(&self) -> QuestionField
fn clone(&self) -> QuestionField
Returns a copy 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 QuestionField
impl Debug for QuestionField
Source§impl Default for QuestionField
impl Default for QuestionField
Source§impl<'de> Deserialize<'de> for QuestionField
impl<'de> Deserialize<'de> for QuestionField
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
Auto Trait Implementations§
impl Freeze for QuestionField
impl RefUnwindSafe for QuestionField
impl Send for QuestionField
impl Sync for QuestionField
impl Unpin for QuestionField
impl UnwindSafe for QuestionField
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