pub struct Question { /* private fields */ }Implementations§
Source§impl Question
impl Question
Sourcepub fn new(
id: Option<String>,
name: String,
prompt: String,
kind: QuestionKind,
) -> Self
pub fn new( id: Option<String>, name: String, prompt: String, kind: QuestionKind, ) -> Self
Create a new question with the given id, name, prompt, and kind.
pub fn id(&self) -> Option<&str>
pub fn name(&self) -> &str
pub fn prompt(&self) -> &str
pub fn kind(&self) -> &QuestionKind
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Question
impl RefUnwindSafe for Question
impl Send for Question
impl Sync for Question
impl Unpin for Question
impl UnwindSafe for Question
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