Document SendableEmail

This commit is contained in:
Alexis Mousset
2014-12-10 13:57:29 +01:00
parent 5c8e09f073
commit 9f99382b98
2 changed files with 5 additions and 3 deletions

View File

@@ -113,7 +113,7 @@
#![experimental]
#![feature(phase, macro_rules, default_type_params)]
//#![deny(missing_docs, warnings)]
#![deny(missing_docs, warnings)]
#![feature(phase)] #[phase(plugin, link)] extern crate log;

View File

@@ -9,10 +9,12 @@
//! SMTP sendable email
/// Converts to an `Header`
/// Email sendable by an SMTP client
pub trait SendableEmail {
/// Converts to an `Header` struct
/// From address
fn from_address(&self) -> String;
/// To addresses
fn to_addresses(&self) -> Vec<String>;
/// Message content
fn message(&self) -> String;
}