pub struct Exam {
pub name: String,
pub preamble: Option<String>,
pub questions: Option<Vec<Question>>,
pub ordering: Option<Vec<u32>>,
}Fields§
§name: String§preamble: Option<String>§questions: Option<Vec<Question>>§ordering: Option<Vec<u32>>Implementations§
Source§impl Exam
impl Exam
pub fn new(name: &str) -> Self
pub fn from_tex( filename: &str, name: &str, ) -> Result<(Exam, Option<ExamSetting>), ExamReaderError>
pub fn from_csv(filename: &str, name: &str) -> Result<Exam, ExamReaderError>
pub fn from_txt(filename: &str, name: &str) -> Result<Exam, ExamReaderError>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Exam
impl<'de> Deserialize<'de> for Exam
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 Exam
impl RefUnwindSafe for Exam
impl Send for Exam
impl Sync for Exam
impl Unpin for Exam
impl UnwindSafe for Exam
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