pub struct RedeemableCode {
pub id: CodeId,
pub key_version: KeyVersion,
pub grant: Option<String>,
pub scope: Option<String>,
pub expires_at: u64,
}Expand description
Record returned by a successful find_redeemable call.
Fields§
§id: CodeIdOpaque record identifier (not a secret, safe for logs and audit).
key_version: KeyVersionThe lookup key version under which this code was stored. Needed to re-derive the comparison candidate during claim.
grant: Option<String>Opaque host-owned grant payload, returned after a won claim.
scope: Option<String>Optional scope label set at issuance; restricts claim to matching scope.
expires_at: u64Expiry as Unix seconds (UTC).
Trait Implementations§
Source§impl Clone for RedeemableCode
impl Clone for RedeemableCode
Source§fn clone(&self) -> RedeemableCode
fn clone(&self) -> RedeemableCode
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 RedeemableCode
impl RefUnwindSafe for RedeemableCode
impl Send for RedeemableCode
impl Sync for RedeemableCode
impl Unpin for RedeemableCode
impl UnsafeUnpin for RedeemableCode
impl UnwindSafe for RedeemableCode
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