pub struct CredentialService;Implementations§
Source§impl CredentialService
impl CredentialService
pub fn issue_credential( identity_id: IdentityId, kind: CredentialKind, scope: String, ttl_seconds: i64, ) -> Credential
pub fn verify_credential( credential: &Credential, required_scope: &str, ) -> Result<(), AuthError>
pub fn revoke_credential(credential: &mut Credential)
Auto Trait Implementations§
impl Freeze for CredentialService
impl RefUnwindSafe for CredentialService
impl Send for CredentialService
impl Sync for CredentialService
impl Unpin for CredentialService
impl UnsafeUnpin for CredentialService
impl UnwindSafe for CredentialService
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