pub struct ApiKeysService { /* private fields */ }Implementations§
Source§impl ApiKeysService
impl ApiKeysService
pub fn new(ctx: ServiceContext) -> Self
pub async fn list(&self, subaccount_id: Option<u64>) -> Result<ApiKeysList>
pub async fn get(&self, key_id: &str) -> Result<Option<ApiKeySummary>>
Sourcepub fn generate_keypair(&self) -> Ed25519Keypair
pub fn generate_keypair(&self) -> Ed25519Keypair
Generate a local Ed25519 keypair for API key creation (secret never sent to API).
Sourcepub async fn subscribe(
&self,
account_id: Option<&str>,
) -> Result<TypedSubscription<ApiKeySummary>>
pub async fn subscribe( &self, account_id: Option<&str>, ) -> Result<TypedSubscription<ApiKeySummary>>
Subscribe to private API key updates (requires realtime feature).
Trait Implementations§
Source§impl Clone for ApiKeysService
impl Clone for ApiKeysService
Source§fn clone(&self) -> ApiKeysService
fn clone(&self) -> ApiKeysService
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 moreAuto Trait Implementations§
impl !Freeze for ApiKeysService
impl !RefUnwindSafe for ApiKeysService
impl !UnwindSafe for ApiKeysService
impl Send for ApiKeysService
impl Sync for ApiKeysService
impl Unpin for ApiKeysService
impl UnsafeUnpin for ApiKeysService
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