Struct Issuer

Source
pub struct Issuer {}

Implementations§

Source§

impl Issuer

Source

pub fn create_schema( issuer_did: &str, name: &str, version: &str, attrs: &str, ) -> Result<(String, String), ErrorCode>

Source

pub fn create_schema_timeout( issuer_did: &str, name: &str, version: &str, attrs: &str, timeout: Duration, ) -> Result<(String, String), ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn create_schema_async<F>( issuer_did: &str, name: &str, version: &str, attrs: &str, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn create_and_store_credential_def( wallet_handle: IndyHandle, issuer_did: &str, schema_json: &str, tag: &str, signature_type: Option<&str>, config_json: &str, ) -> Result<(String, String), ErrorCode>

Source

pub fn create_and_store_credential_def_timeout( wallet_handle: IndyHandle, issuer_did: &str, schema_json: &str, tag: &str, signature_type: Option<&str>, config_json: &str, timeout: Duration, ) -> Result<(String, String), ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn create_and_store_credential_def_async<F>( wallet_handle: IndyHandle, issuer_did: &str, schema_json: &str, tag: &str, signature_type: Option<&str>, config_json: &str, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn create_and_store_revoc_reg( wallet_handle: IndyHandle, issuer_did: &str, revoc_def_type: Option<&str>, tag: &str, cred_def_id: &str, config_json: &str, tails_writer_handle: IndyHandle, ) -> Result<(String, String, String), ErrorCode>

Source

pub fn create_and_store_revoc_reg_timeout( wallet_handle: IndyHandle, issuer_did: &str, revoc_def_type: Option<&str>, tag: &str, cred_def_id: &str, config_json: &str, tails_writer_handle: IndyHandle, timeout: Duration, ) -> Result<(String, String, String), ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn create_and_store_revoc_reg_async<F>( wallet_handle: IndyHandle, issuer_did: &str, revoc_def_type: Option<&str>, tag: &str, cred_def_id: &str, config_json: &str, tails_writer_handle: IndyHandle, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String, String, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn create_credential_offer( wallet_handle: IndyHandle, cred_def_id: &str, ) -> Result<String, ErrorCode>

Source

pub fn create_credential_offer_timeout( wallet_handle: IndyHandle, cred_def_id: &str, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn create_credential_offer_async<F>( wallet_handle: IndyHandle, cred_def_id: &str, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn create_credential( wallet_handle: IndyHandle, cred_offer_json: &str, cred_req_json: &str, cred_values_json: &str, rev_reg_id: Option<&str>, blob_storage_reader_handle: IndyHandle, ) -> Result<(String, Option<String>, Option<String>), ErrorCode>

Source

pub fn create_credential_timeout( wallet_handle: IndyHandle, cred_offer_json: &str, cred_req_json: &str, cred_values_json: &str, rev_reg_id: Option<&str>, blob_storage_reader_handle: IndyHandle, timeout: Duration, ) -> Result<(String, Option<String>, Option<String>), ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn create_credential_async<F>( wallet_handle: IndyHandle, cred_offer_json: &str, cred_req_json: &str, cred_values_json: &str, rev_reg_id: Option<&str>, blob_storage_reader_handle: IndyHandle, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String, Option<String>, Option<String>) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn revoke_credential( wallet_handle: IndyHandle, blob_storage_reader_cfg_handle: IndyHandle, rev_reg_id: &str, cred_revoc_id: &str, ) -> Result<String, ErrorCode>

Source

pub fn revoke_credential_timeout( wallet_handle: IndyHandle, blob_storage_reader_cfg_handle: IndyHandle, rev_reg_id: &str, cred_revoc_id: &str, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn revoke_credential_async<F>( wallet_handle: IndyHandle, blob_storage_reader_cfg_handle: IndyHandle, rev_reg_id: &str, cred_revoc_id: &str, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result
Source

pub fn merge_revocation_registry_deltas( rev_reg_delta_json: &str, other_rev_reg_delta_json: &str, ) -> Result<String, ErrorCode>

Source

pub fn merge_revocation_registry_deltas_timeout( rev_reg_delta_json: &str, other_rev_reg_delta_json: &str, timeout: Duration, ) -> Result<String, ErrorCode>

  • timeout - the maximum time this function waits for a response
Source

pub fn merge_revocation_registry_deltas_async<F>( rev_reg_delta_json: &str, other_rev_reg_delta_json: &str, closure: F, ) -> ErrorCode
where F: FnMut(ErrorCode, String) + Send + 'static,

  • closure - the closure that is called when finished
§Returns
  • errorcode - errorcode from calling ffi function. The closure receives the return result

Auto Trait Implementations§

§

impl Freeze for Issuer

§

impl RefUnwindSafe for Issuer

§

impl Send for Issuer

§

impl Sync for Issuer

§

impl Unpin for Issuer

§

impl UnwindSafe for Issuer

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.