Struct snooker::Snooker [] [src]

pub struct Snooker {
    pub score: isize,
    pub status: Status,
    pub comment: Comment,
}

The struct returned by Snooker::new when it has finished processing a comment.

Fields

The final score the passed comment was given.

The status assigned to this comment based off of its score. If the score was greater than or equal to 1, the status is Status::Valid. If the score is 0, the status is Status::Moderate. If score is below 0, the status is Status::Spam.

The original comment struct passed to Snooker.

Trait Implementations

impl Debug for Snooker
[src]

Formats the value using the given formatter.

impl Clone for Snooker
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more