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: usize
The room’s id, unique within this school.
name: String
The room’s shortened name, unique within this school.
long_name: String
The room’s full name.
active: bool
Whether 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: String
The 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§
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.