Struct nps::summary::Summary [] [src]

pub struct Summary {
    pub promoters: u32,
    pub detractors: u32,
    pub passive: u32,
    pub histogram: [u32; 11],
}

A NPS summary is computed starting from a vector of ratings.

It records a couple of counters that can be used to compute the and it can also show a histogram of all the ratings.

Fields

Rated 9 or 10. Promoters are loyal enthusiasts.

Rated 0 to 6. Detractors are unhappy customers.

Rated 7 or 8. Satisfied but unenthusiastic customers.

The distribution of ratings (expecting 0 to 10 values).

Methods

impl Summary
[src]

Compute the NPS score for this summary of ratings

Trait Implementations

impl Debug for Summary
[src]

Formats the value using the given formatter.

impl Clone for Summary
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Copy for Summary
[src]