[][src]Struct pt::models::RatingSection

pub struct RatingSection { /* fields omitted */ }

Implementations

impl RatingSection[src]

pub fn new(current: f32, month1: f32, month2: f32, month3: f32) -> RatingSection[src]

pub fn set_current(&mut self, current: f32)[src]

pub fn with_current(self, current: f32) -> RatingSection[src]

pub fn current(&self) -> &f32[src]

pub fn set_month1(&mut self, month1: f32)[src]

pub fn with_month1(self, month1: f32) -> RatingSection[src]

pub fn month1(&self) -> &f32[src]

pub fn set_month2(&mut self, month2: f32)[src]

pub fn with_month2(self, month2: f32) -> RatingSection[src]

pub fn month2(&self) -> &f32[src]

pub fn set_month3(&mut self, month3: f32)[src]

pub fn with_month3(self, month3: f32) -> RatingSection[src]

pub fn month3(&self) -> &f32[src]

pub fn set_month4(&mut self, month4: f32)[src]

pub fn with_month4(self, month4: f32) -> RatingSection[src]

pub fn month4(&self) -> Option<&f32>[src]

pub fn reset_month4(&mut self)[src]

pub fn set_month5(&mut self, month5: f32)[src]

pub fn with_month5(self, month5: f32) -> RatingSection[src]

pub fn month5(&self) -> Option<&f32>[src]

pub fn reset_month5(&mut self)[src]

Trait Implementations

impl Clone for RatingSection[src]

impl Debug for RatingSection[src]

impl<'de> Deserialize<'de> for RatingSection[src]

impl Serialize for RatingSection[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.