#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Range {
pub min_proficiency_level: ::std::option::Option<f32>,
pub max_proficiency_level: ::std::option::Option<f32>,
}
impl Range {
pub fn min_proficiency_level(&self) -> ::std::option::Option<f32> {
self.min_proficiency_level
}
pub fn max_proficiency_level(&self) -> ::std::option::Option<f32> {
self.max_proficiency_level
}
}
impl Range {
pub fn builder() -> crate::types::builders::RangeBuilder {
crate::types::builders::RangeBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct RangeBuilder {
pub(crate) min_proficiency_level: ::std::option::Option<f32>,
pub(crate) max_proficiency_level: ::std::option::Option<f32>,
}
impl RangeBuilder {
pub fn min_proficiency_level(mut self, input: f32) -> Self {
self.min_proficiency_level = ::std::option::Option::Some(input);
self
}
pub fn set_min_proficiency_level(mut self, input: ::std::option::Option<f32>) -> Self {
self.min_proficiency_level = input;
self
}
pub fn get_min_proficiency_level(&self) -> &::std::option::Option<f32> {
&self.min_proficiency_level
}
pub fn max_proficiency_level(mut self, input: f32) -> Self {
self.max_proficiency_level = ::std::option::Option::Some(input);
self
}
pub fn set_max_proficiency_level(mut self, input: ::std::option::Option<f32>) -> Self {
self.max_proficiency_level = input;
self
}
pub fn get_max_proficiency_level(&self) -> &::std::option::Option<f32> {
&self.max_proficiency_level
}
pub fn build(self) -> crate::types::Range {
crate::types::Range {
min_proficiency_level: self.min_proficiency_level,
max_proficiency_level: self.max_proficiency_level,
}
}
}