pub struct EnrollmentSession {Show 21 fields
pub id: Uuid,
pub product_id: Uuid,
pub fingerprint_commitment: Vec<u8>,
pub customer_pubkey: Vec<u8>,
pub client_version: String,
pub protocol_version: i64,
pub state: EnrollmentState,
pub offer_nonce: Option<Vec<u8>>,
pub offer_expires_at: Option<i64>,
pub terms_document_id: Option<Uuid>,
pub request_bytes: Vec<u8>,
pub offer_bytes: Option<Vec<u8>>,
pub receipt_bytes: Option<Vec<u8>>,
pub payment_intent_id: Option<String>,
pub payment_captured: bool,
pub grant_bytes: Option<Vec<u8>>,
pub transfer_request_id: Option<Uuid>,
pub license_id: Option<Uuid>,
pub abandon_reason: Option<String>,
pub created_at: i64,
pub updated_at: i64,
}Fields§
§id: Uuid§product_id: Uuid§fingerprint_commitment: Vec<u8>§customer_pubkey: Vec<u8>§client_version: String§protocol_version: i64§state: EnrollmentState§offer_nonce: Option<Vec<u8>>§offer_expires_at: Option<i64>§terms_document_id: Option<Uuid>§request_bytes: Vec<u8>§offer_bytes: Option<Vec<u8>>§receipt_bytes: Option<Vec<u8>>§payment_intent_id: Option<String>§payment_captured: bool§grant_bytes: Option<Vec<u8>>§transfer_request_id: Option<Uuid>§license_id: Option<Uuid>§abandon_reason: Option<String>§created_at: i64§updated_at: i64Trait Implementations§
Source§impl Clone for EnrollmentSession
impl Clone for EnrollmentSession
Source§fn clone(&self) -> EnrollmentSession
fn clone(&self) -> EnrollmentSession
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 moreSource§impl Debug for EnrollmentSession
impl Debug for EnrollmentSession
Source§impl PartialEq for EnrollmentSession
impl PartialEq for EnrollmentSession
Source§fn eq(&self, other: &EnrollmentSession) -> bool
fn eq(&self, other: &EnrollmentSession) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EnrollmentSession
Auto Trait Implementations§
impl Freeze for EnrollmentSession
impl RefUnwindSafe for EnrollmentSession
impl Send for EnrollmentSession
impl Sync for EnrollmentSession
impl Unpin for EnrollmentSession
impl UnsafeUnpin for EnrollmentSession
impl UnwindSafe for EnrollmentSession
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more