pub struct TelegramCredentialStore { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Clone for TelegramCredentialStore
impl Clone for TelegramCredentialStore
Source§fn clone(&self) -> TelegramCredentialStore
fn clone(&self) -> TelegramCredentialStore
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 TelegramCredentialStore
impl CredentialStore for TelegramCredentialStore
type Account = TelegramAccount
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 TelegramCredentialStore
impl RefUnwindSafe for TelegramCredentialStore
impl Send for TelegramCredentialStore
impl Sync for TelegramCredentialStore
impl Unpin for TelegramCredentialStore
impl UnsafeUnpin for TelegramCredentialStore
impl UnwindSafe for TelegramCredentialStore
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