Html

final case
class Html[F[_]](html: F[BodyContent]) extends MailBody[F]
trait Serializable
trait Product
trait Equals
trait MailBody[F]
class Object
trait Matchable
class Any

Value members

Concrete methods

def fold[A](empty: Empty[F] => A, txt: Text[F] => A, h: Html[F] => A, both: HtmlAndText[F] => A): A
def modify(f: BodyContent => BodyContent)(implicit F: Applicative[F]): Html[F]
def withHtml(other: F[BodyContent]): MailBody[F]
def withText(text: F[BodyContent]): MailBody[F]

Inherited methods

def htmlContent(txtToHtml: BodyContent => BodyContent)(implicit ev: Applicative[F]): F[BodyContent]

Return the html or the text content. If only text is available, it is applied to the given function that may convert it into html.

Return the html or the text content. If only text is available, it is applied to the given function that may convert it into html.

Inherited from
MailBody
def htmlPart(implicit ev: Applicative[F]): F[Option[BodyContent]]

Return only the html part if present.

Return only the html part if present.

Inherited from
MailBody
def isEmpty: Boolean
Inherited from
MailBody
def nonEmpty: Boolean
Inherited from
MailBody
def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product
def textPart(implicit ev: Applicative[F]): F[Option[BodyContent]]

Return only the text part if present.

Return only the text part if present.

Inherited from
MailBody