pub struct Room {
pub id: usize,
pub name: String,
pub long_name: String,
pub active: bool,
pub fore_color: Option<String>,
pub back_color: Option<String>,
pub building: String,
pub did: Option<usize>,
}Expand description
Represents a room for school lessons.
Fields§
§id: usizeThe room’s id, unique within this school.
name: StringThe room’s shortened name, unique within this school.
long_name: StringThe room’s full name.
active: boolWhether the room is generally available or not used in the system.
fore_color: Option<String>Foreground color for displaying the room, formatted as RRGGBB.
back_color: Option<String>Background color for displaying the room, formatted as RRGGBB.
building: StringThe building that this room is located in. May be an empty string if you school hasn’t configured any.
did: Option<usize>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Room
impl<'de> Deserialize<'de> for Room
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 Room
impl Ord for Room
Source§impl PartialOrd for Room
impl PartialOrd for Room
impl Eq for Room
impl StructuralPartialEq for Room
Auto Trait Implementations§
impl Freeze for Room
impl RefUnwindSafe for Room
impl Send for Room
impl Sync for Room
impl Unpin for Room
impl UnwindSafe for Room
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)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.