pub struct ExtraQuestion {
pub text: String,
pub exactly_one: bool,
pub options: Vec<AnswerOption>,
}Fields§
§text: StringThe question that gets asked to the patient on booking an appointment
exactly_one: boolWhether the patient has to select exactly one answer, or multiple answers are allowed
options: Vec<AnswerOption>The answer options
Implementations§
Source§impl ExtraQuestion
impl ExtraQuestion
pub fn new( text: String, exactly_one: bool, options: Vec<AnswerOption>, ) -> ExtraQuestion
Trait Implementations§
Source§impl Clone for ExtraQuestion
impl Clone for ExtraQuestion
Source§fn clone(&self) -> ExtraQuestion
fn clone(&self) -> ExtraQuestion
Returns a duplicate 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 ExtraQuestion
impl Debug for ExtraQuestion
Source§impl Default for ExtraQuestion
impl Default for ExtraQuestion
Source§fn default() -> ExtraQuestion
fn default() -> ExtraQuestion
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExtraQuestion
impl<'de> Deserialize<'de> for ExtraQuestion
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 ExtraQuestion
impl PartialEq for ExtraQuestion
Source§impl Serialize for ExtraQuestion
impl Serialize for ExtraQuestion
impl StructuralPartialEq for ExtraQuestion
Auto Trait Implementations§
impl Freeze for ExtraQuestion
impl RefUnwindSafe for ExtraQuestion
impl Send for ExtraQuestion
impl Sync for ExtraQuestion
impl Unpin for ExtraQuestion
impl UnwindSafe for ExtraQuestion
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