Struct snooker::Comment
[−]
[src]
pub struct Comment { pub author: Option<String>, pub url: Option<String>, pub body: String, pub previously_accepted_for_email: Option<isize>, pub previously_rejected_for_email: Option<isize>, pub previous_comment_bodies: Option<Vec<String>>, }
Snooker's representation of a comment.
body
is the only field that's required. It is highly recommended that you provide the
author
and url
fields too.
If you wan't to go the whole hog, you can provide data about the comments previously submitted with this email address.
Fields
The name the user provided when submitting the comment.
url: Option<String>
The URL the user provided when submitting the comment.
body: String
The body of the comment the user submitted.
previously_accepted_for_email: Option<isize>
The number of comments from this email address that Snooker has previously deemed valid. Note: Snooker does not store any data about the comments it processes. If you want to use this feature, you'll need to keep your own database.
previously_rejected_for_email: Option<isize>
The number of comments from this email address that Snooker has previously deemed spam. Note: Snooker does not store any data about the comments it processes. If you want to use this feature, you'll need to keep your own database.
previous_comment_bodies: Option<Vec<String>>
The bodies of the comments previously submitted with this email address. Note: Snooker does not store any data about the comments it processes. If you want to use this feature, you'll need to keep your own database.
Trait Implementations
impl Debug for Comment
[src]
impl Clone for Comment
[src]
fn clone(&self) -> Comment
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