pub struct RelayMailApi { /* private fields */ }Expand description
OutboundMail implementation over this deployment’s wallet Worker.
One bearer-authed JSON POST /internal/send-verification-email against
the Worker (apps/wallet/worker/index.ts), which owns the actual
outbound send capability and its provider credential.
base_url is the Worker’s own origin (no trailing slash); token is the
shared secret both sides authenticate the call with — the Worker fails
the request closed if it does not match (or is unset on either side).
Implementations§
Source§impl RelayMailApi
impl RelayMailApi
Sourcepub fn with_base_url(
base_url: impl Into<String>,
token: impl Into<String>,
) -> Self
pub fn with_base_url( base_url: impl Into<String>, token: impl Into<String>, ) -> Self
Build a client against the wallet Worker’s base_url, authenticating
with the shared token.
§Panics
Panics if reqwest’s default TLS backend fails to initialise — that
only happens on a misconfigured target (missing CA roots in the
container, etc.) and is treated as a startup-time programmer error
rather than a recoverable runtime condition.
Trait Implementations§
Source§impl Clone for RelayMailApi
impl Clone for RelayMailApi
Source§fn clone(&self) -> RelayMailApi
fn clone(&self) -> RelayMailApi
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more