pub trait HostedAccountAuthority: Send + Sync {
// Required method
fn allocate(
&self,
requested_handle: &str,
) -> Result<AuthorityHostedAccountBinding>;
// Provided method
fn allocate_for_transaction(
&self,
requested_handle: &str,
_transaction_id: &str,
) -> Result<AuthorityHostedAccountBinding> { ... }
}Expand description
Deployment authority that allocates local tenant bindings.
Required Methods§
fn allocate( &self, requested_handle: &str, ) -> Result<AuthorityHostedAccountBinding>
Provided Methods§
Sourcefn allocate_for_transaction(
&self,
requested_handle: &str,
_transaction_id: &str,
) -> Result<AuthorityHostedAccountBinding>
fn allocate_for_transaction( &self, requested_handle: &str, _transaction_id: &str, ) -> Result<AuthorityHostedAccountBinding>
Allocate or resume the authority reservation for one authenticated transaction. Production implementations bind the permanent label to this idempotency key; the default preserves existing test/fake authorities while still keeping the client out of tenant/DID choice.