ICal.Attachment (iCal v1.0.0)

View Source

An ICal attachment entry. CID, URI, and binary attachments are supported.

Summary

Functions

Returns the decoded data for an Attachment.

Types

t()

@type t() :: %ICal.Attachment{
  data: String.t(),
  data_type: :uri | :cid | :base8 | :base64,
  mimetype: String.t() | nil
}

Functions

decoded_data(attachment)

@spec decoded_data(t()) :: String.t() | binary()

Returns the decoded data for an Attachment.

For CID and URI attachments, this is simply the string representing the resource.

For inline binary attachments, this is decoded based on its advertised encoding.