Table of Contents

Struct EmailBodyCharacterAllowance

Namespace
MailFathom.Application.EmailContent.Rendering
Assembly
MailFathom.Application.dll

How many characters one body representation may return, and which bound decided it.

public readonly record struct EmailBodyCharacterAllowance : IEquatable<EmailBodyCharacterAllowance>
Implements
Inherited Members

Remarks

The two travel together because the second is only knowable where the first is chosen. Once a representation has been cut, nothing about the text says which of the two limits cut it, and re-deriving that from the lengths afterwards would guess at what this type already knows.

Constructors

EmailBodyCharacterAllowance(int, EmailBodyTruncation)

How many characters one body representation may return, and which bound decided it.

Properties

MaxCharacters

The greatest number of characters the representation may hold.

TruncationWhenCut

The bound to report when the representation had more to give than this allows.

Methods

Of(int, int)

Chooses the allowance one representation receives from the two bounds that apply to it.