pub struct AttachmentBuilder { /* private fields */ }
Expand description

Builder of attachment metadata and payload. Used to construct and inject Attachment into Message

Implementations

Constructor of new instance of the builder.

Parameters
  • included_mod_time - bool value indicating if this attachment should be timestamped on attaching. If true - will update lastmod_time property on builder consumption.

Optional, but recommended identifier of attachment content.

Parameters
  • id - String of Attachment identifier

Human redable description string

Parameters
  • description - String of description for this Attachment

Attachment file name specifier.

Parameters
  • filename - name of the file attached

Describes the media (MIME) type of the attached content

Parameters
  • media_type - String of media type description

Describes the format of the attachment if the media_type is not sufficient.

Parameters
  • format - String format identifier

mostly relevant when content is included by reference instead of by value. Lets the receiver guess how expensive it will be, in time, bandwidth, and storage, to fully fetch the attachment.

Parameters
  • bytes - usize of bytes.

Attach actual payload in form of AttachmentData Consumes AttachmentDataBuilder to do so.

Parameters
  • attachment_data - ‘AttachmentDataBuilder’ instance, prepopulated.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.