Skip to main content

Module types

Module types 

Source
Expand description

Domain types for the PCS External API client hot path.

No proto types appear here — crate::PcsExternalClient translates at the wire boundary. These newtypes encode invariants the proto schema cannot (ppnum format, recipient list size + dedup) so violations are caught at construction, not at the wire.

Structs§

DeliveryEvent
A single lifecycle event from crate::PcsExternalClient::stream_send_request_events.
DeliveryStream
Wrapper stream returned by crate::PcsExternalClient::stream_send_request_events.
PollConfig
Optional poll configuration when the cited template includes a poll.
Ppnum
A validated Ppoppo number — the canonical recipient identifier.
Recipient
A single recipient entry: ppnum plus per-recipient template variables.
RecipientList
A validated batch of recipients enforcing both PCS quotas and SDK invariants:
SendOutcome
Outcome of a successful crate::PcsExternalClient::send_alert call.
SendRequestId
Identifier for a previously-issued send request, returned from crate::PcsExternalClient::send_alert and consumed by crate::PcsExternalClient::get_send_status.
SendStatus
Aggregate status returned by crate::PcsExternalClient::get_send_status. Per-recipient detail is out of scope for the hot path and reachable via the escape hatch when needed.
SendStatusTotals
Delivery counters within a SendStatus.
TemplateId
Identifier for a registered template on the PCS External platform.

Enums§

DeliveryEventKind
Discriminated payload of a DeliveryEvent.
PpnumError
Construction-time error for a Ppnum.
RecipientListError
Construction-time error for a RecipientList.
SendRequestState
Domain mirror of proto SendRequestStatus. Catch-all Unknown for forward compatibility — proto enum addition won’t break consumers.