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
score: isize
The final score the passed comment was given.
status: Status
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
.
comment: Comment
The original comment struct passed to Snooker.
Trait Implementations
impl Debug for Snooker
[src]
impl Clone for Snooker
[src]
fn clone(&self) -> Snooker
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more