pub struct ClaimRequest<'a> {
pub code_id: &'a CodeId,
pub subject: &'a SubjectId,
pub now: u64,
pub purpose: Option<&'a str>,
pub scope: Option<&'a str>,
}Expand description
Parameters for a claim attempt.
Fields§
§code_id: &'a CodeIdThe record to attempt to claim (from find_redeemable).
subject: &'a SubjectIdThe subject that is claiming this code. Stored on the record for audit.
now: u64Current time as Unix seconds (UTC). Used as used_at and in the
expiry guard of the conditional UPDATE.
purpose: Option<&'a str>Optional purpose label checked against the stored purpose.
scope: Option<&'a str>Optional scope checked against the stored scope.
Auto Trait Implementations§
impl<'a> Freeze for ClaimRequest<'a>
impl<'a> RefUnwindSafe for ClaimRequest<'a>
impl<'a> Send for ClaimRequest<'a>
impl<'a> Sync for ClaimRequest<'a>
impl<'a> Unpin for ClaimRequest<'a>
impl<'a> UnsafeUnpin for ClaimRequest<'a>
impl<'a> UnwindSafe for ClaimRequest<'a>
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