Document SendableEmail
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user