pub struct Degree {
pub name: String,
pub degree_type: String,
pub cip_code: String,
pub system_type: String,
}Expand description
Represents a degree program
Fields§
§name: StringDegree name (e.g., “Computer Science”)
degree_type: StringDegree type (e.g., “BS”, “BA”, “MS”)
cip_code: StringCIP code (Classification of Instructional Programs)
system_type: StringSystem type (“semester” or “quarter”)
Implementations§
Source§impl Degree
impl Degree
Sourcepub const fn new(
name: String,
degree_type: String,
cip_code: String,
system_type: String,
) -> Self
pub const fn new( name: String, degree_type: String, cip_code: String, system_type: String, ) -> Self
Create a new degree
§Arguments
name- Degree namedegree_type- Degree type (BS, BA, etc.)cip_code- CIP codesystem_type- System type (“semester” or “quarter”)
Sourcepub fn is_quarter_system(&self) -> bool
pub fn is_quarter_system(&self) -> bool
Check if this degree uses a quarter system
Sourcepub fn complexity_scale_factor(&self) -> f64
pub fn complexity_scale_factor(&self) -> f64
Get the complexity scaling factor based on system type
Quarter systems scale complexity by 2/3 compared to semester systems
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Degree
impl<'de> Deserialize<'de> for Degree
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
impl Eq for Degree
impl StructuralPartialEq for Degree
Auto Trait Implementations§
impl Freeze for Degree
impl RefUnwindSafe for Degree
impl Send for Degree
impl Sync for Degree
impl Unpin for Degree
impl UnwindSafe for Degree
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> 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.