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 body(
  message: MessageBuilder,
  body: String,
) -> MessageBuilder
pub fn create(message_builder: MessageBuilder) -> Message
pub fn from_email(
  message: MessageBuilder,
  from: String,
) -> MessageBuilder
pub fn new_builder() -> MessageBuilder
pub fn subject(
  message: MessageBuilder,
  subject: String,
) -> MessageBuilder
pub fn to_emails(
  message: MessageBuilder,
  to: List(String),
) -> MessageBuilder
Search Document