pub struct RedeemSuccess {
pub subject: SubjectId,
pub grant: Option<String>,
/* private fields */
}Expand description
A successfully completed code redemption.
The claim proof certifies that exactly one concurrent caller won the
atomic race. The caller must not issue a session or perform host-side
effects without this proof (RFC-013 §5, RFC-005 §14.5).
Fields§
§subject: SubjectIdThe authenticated subject returned by the host callback (or passed directly in the two-step flow).
grant: Option<String>Opaque grant payload from the code record. Passed to the host callback; not interpreted by codlet.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RedeemSuccess
impl RefUnwindSafe for RedeemSuccess
impl Send for RedeemSuccess
impl Sync for RedeemSuccess
impl Unpin for RedeemSuccess
impl UnsafeUnpin for RedeemSuccess
impl UnwindSafe for RedeemSuccess
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