pub struct Teacher {
pub id: usize,
pub name: String,
pub first_name: String,
pub last_name: String,
pub title: String,
pub active: bool,
pub dids: Vec<DidItem>,
}
Expand description
Represents a teacher.
Fields§
§id: usize
The teacher’s id, unique within this school.
name: String
The teacher’s shortened name, unique within this school.
first_name: String
The teacher’s first name.
last_name: String
The teacher’s last name.
title: String
The teacher’s title.
active: bool
Whether the teacher is generally available or not used in the system.
dids: Vec<DidItem>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Teacher
impl<'de> Deserialize<'de> for Teacher
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 Ord for Teacher
impl Ord for Teacher
Source§impl PartialOrd for Teacher
impl PartialOrd for Teacher
impl Eq for Teacher
impl StructuralPartialEq for Teacher
Auto Trait Implementations§
impl Freeze for Teacher
impl RefUnwindSafe for Teacher
impl Send for Teacher
impl Sync for Teacher
impl Unpin for Teacher
impl UnwindSafe for Teacher
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.