pub struct PendingIssuance { /* private fields */ }Expand description
Holder-side pending issuance state required to finalize one issuer response.
Implementations§
Source§impl PendingIssuance
impl PendingIssuance
Sourcepub fn create_request(
issuer_authority: JsValue,
info: JsValue,
blind_msg: JsValue,
) -> Result<JsValue, JsError>
pub fn create_request( issuer_authority: JsValue, info: JsValue, blind_msg: JsValue, ) -> Result<JsValue, JsError>
Create a blinded holder issuance request and local pending issuance state.
Sourcepub fn export_state(&self) -> Result<String, JsError>
pub fn export_state(&self) -> Result<String, JsError>
Export this pending issuance state as a JSON string for application storage.
Sourcepub fn import_state(state: String) -> Result<PendingIssuance, JsError>
pub fn import_state(state: String) -> Result<PendingIssuance, JsError>
Import pending issuance state previously returned by exportState.
Trait Implementations§
Source§impl From<PendingIssuance> for JsValue
impl From<PendingIssuance> for JsValue
Source§fn from(value: PendingIssuance) -> Self
fn from(value: PendingIssuance) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for PendingIssuance
impl FromWasmAbi for PendingIssuance
Source§impl IntoWasmAbi for PendingIssuance
impl IntoWasmAbi for PendingIssuance
Source§impl LongRefFromWasmAbi for PendingIssuance
impl LongRefFromWasmAbi for PendingIssuance
Source§type Abi = WasmPtr<WasmRefCell<PendingIssuance>>
type Abi = WasmPtr<WasmRefCell<PendingIssuance>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRef<PendingIssuance>
type Anchor = RcRef<PendingIssuance>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn long_ref_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl OptionFromWasmAbi for PendingIssuance
impl OptionFromWasmAbi for PendingIssuance
Source§impl OptionIntoWasmAbi for PendingIssuance
impl OptionIntoWasmAbi for PendingIssuance
Source§impl RefFromWasmAbi for PendingIssuance
impl RefFromWasmAbi for PendingIssuance
Source§type Abi = WasmPtr<WasmRefCell<PendingIssuance>>
type Abi = WasmPtr<WasmRefCell<PendingIssuance>>
The Wasm ABI type references to
Self are recovered from.Source§type Anchor = RcRef<PendingIssuance>
type Anchor = RcRef<PendingIssuance>
The type that holds the reference to
Self for the duration of the
invocation of the function that has an &Self parameter. This is
required to ensure that the lifetimes don’t persist beyond one function
call, and so that they remain anonymous.Source§impl RefMutFromWasmAbi for PendingIssuance
impl RefMutFromWasmAbi for PendingIssuance
Source§type Abi = WasmPtr<WasmRefCell<PendingIssuance>>
type Abi = WasmPtr<WasmRefCell<PendingIssuance>>
Same as
RefFromWasmAbi::AbiSource§type Anchor = RcRefMut<PendingIssuance>
type Anchor = RcRefMut<PendingIssuance>
Same as
RefFromWasmAbi::AnchorSource§unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
unsafe fn ref_mut_from_abi(js: Self::Abi) -> Self::Anchor
Same as
RefFromWasmAbi::ref_from_abiSource§impl TryFromJsValue for PendingIssuance
impl TryFromJsValue for PendingIssuance
Source§impl VectorFromWasmAbi for PendingIssuance
impl VectorFromWasmAbi for PendingIssuance
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[PendingIssuance]>
Source§impl VectorIntoWasmAbi for PendingIssuance
impl VectorIntoWasmAbi for PendingIssuance
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[PendingIssuance]>) -> Self::Abi
Source§impl WasmDescribeVector for PendingIssuance
impl WasmDescribeVector for PendingIssuance
impl SupportsConstructor for PendingIssuance
impl SupportsInstanceProperty for PendingIssuance
impl SupportsStaticProperty for PendingIssuance
Auto Trait Implementations§
impl Freeze for PendingIssuance
impl RefUnwindSafe for PendingIssuance
impl Send for PendingIssuance
impl Sync for PendingIssuance
impl Unpin for PendingIssuance
impl UnsafeUnpin for PendingIssuance
impl UnwindSafe for PendingIssuance
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.