pub struct EmailCredentialStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for EmailCredentialStore
impl Clone for EmailCredentialStore
Source§fn clone(&self) -> EmailCredentialStore
fn clone(&self) -> EmailCredentialStore
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CredentialStore for EmailCredentialStore
impl CredentialStore for EmailCredentialStore
type Account = EmailAccount
fn channel(&self) -> Channel
Source§fn get(
&self,
handle: &CredentialHandle,
) -> Result<Self::Account, CredentialError>
fn get( &self, handle: &CredentialHandle, ) -> Result<Self::Account, CredentialError>
Materialise the account data for the handle. Returns
CredentialError::NotFound if the handle refers to an
account that was removed since issuance (hot-reload edge case).Source§fn issue(
&self,
account_id: &str,
agent_id: &str,
) -> Result<CredentialHandle, CredentialError>
fn issue( &self, account_id: &str, agent_id: &str, ) -> Result<CredentialHandle, CredentialError>
Create a handle after checking that
agent_id is permitted on
the account’s allow_agents list (empty list = accept all).
Called by the resolver at boot — never from hot paths.Source§fn list(&self) -> Vec<String>
fn list(&self) -> Vec<String>
Enumerate every account id known to this store. Used by the
gauntlet to diagnose missing
credentials.<channel> bindings.Source§fn allow_agents(&self, account_id: &str) -> Vec<String>
fn allow_agents(&self, account_id: &str) -> Vec<String>
allow_agents for an account, for boot-time cross-validation.
Empty vec means the account accepts any agent.Source§fn validate(&self) -> ValidationReport
fn validate(&self) -> ValidationReport
Run the store’s internal invariants (permissions, missing
files). Errors are non-fatal on their own — the gauntlet
merges them with cross-store checks before failing boot.
Auto Trait Implementations§
impl Freeze for EmailCredentialStore
impl RefUnwindSafe for EmailCredentialStore
impl Send for EmailCredentialStore
impl Sync for EmailCredentialStore
impl Unpin for EmailCredentialStore
impl UnsafeUnpin for EmailCredentialStore
impl UnwindSafe for EmailCredentialStore
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more