Struct MailboxQueryPageSize
- Namespace
- MailFathom.Application.Emails.Mailboxes
- Assembly
- MailFathom.Application.dll
How many emails one page of a mailbox query returns.
public readonly record struct MailboxQueryPageSize : IEquatable<MailboxQueryPageSize>
- Implements
- Inherited Members
Remarks
The type exists so the bound is stated once and enforced wherever a page is asked for, rather than re-checked by every query use case. An unbounded page is the one thing a mailbox query never serves: the result is a projection of personal data that crosses a protocol boundary, and its size is the control that keeps that bounded.
Being a struct, default is reachable and carries a value of zero, which names no page. IsSpecified reports that. Every page size a query uses arrives through Create(int) or FromRequested(int?), so the default cannot reach a query from a request.
Fields
- DefaultValue
The page size a request that names none receives.
- MaximumValue
The greatest page size a mailbox query serves, per the architecture draft.
Properties
- Default
Gets the page size a request that names none receives.
- IsSpecified
Gets whether this value names a page size rather than the unusable struct default.
- Value
Gets how many emails the page returns.
Methods
- Create(int)
Creates a page size from what a request asked for.
- FromRequested(int?)
Creates a page size from a request that may not have named one.
- ToString()
Returns the fully qualified type name of this instance.