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.

The URL the user provided when submitting the comment.

The body of the comment the user submitted.

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.

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.

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]

Formats the value using the given formatter.

impl Clone for Comment
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more