HtmlAndText

emil.MailBody.HtmlAndText
final case class HtmlAndText[F[_]](text: F[BodyContent], html: F[BodyContent]) extends MailBody[F]

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
trait MailBody[F]
class Object
trait Matchable
class Any
Show all

Members list

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(ft: BodyContent => BodyContent, fh: BodyContent => BodyContent)(implicit F: Applicative[F]): HtmlAndText[F]
def withHtml(html: 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.

Attributes

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.

Attributes

Inherited from:
MailBody
def isEmpty: Boolean

Attributes

Inherited from:
MailBody
def nonEmpty: Boolean

Attributes

Inherited from:
MailBody
def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

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.

Attributes

Inherited from:
MailBody