pub struct HessraContext { /* private fields */ }Expand description
Builder for creating Hessra context tokens.
Wraps hessra_context_token::HessraContext with engine types.
Implementations§
Source§impl HessraContext
impl HessraContext
Sourcepub fn new(subject: ObjectId, session_config: SessionConfig) -> Self
pub fn new(subject: ObjectId, session_config: SessionConfig) -> Self
Creates a new context token builder.
Sourcepub fn issue(self, keypair: &KeyPair) -> Result<ContextToken, EngineError>
pub fn issue(self, keypair: &KeyPair) -> Result<ContextToken, EngineError>
Issues (builds and signs) the context token.
Auto Trait Implementations§
impl Freeze for HessraContext
impl RefUnwindSafe for HessraContext
impl Send for HessraContext
impl Sync for HessraContext
impl Unpin for HessraContext
impl UnsafeUnpin for HessraContext
impl UnwindSafe for HessraContext
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