builder
Types
pub type Message {
Message(
from: String,
to: List(String),
subject: String,
body: String,
)
}
Constructors
-
Message( from: String, to: List(String), subject: String, body: String, )
pub type MessageBuilder {
MessageBuilder(
from: Option(String),
to: Option(List(String)),
subject: Option(String),
body: Option(String),
)
}
Constructors
-
MessageBuilder( from: Option(String), to: Option(List(String)), subject: Option(String), body: Option(String), )
Functions
pub fn from_email(
message: MessageBuilder,
from: String,
) -> MessageBuilder
pub fn new_builder() -> MessageBuilder