pub struct Issuer {}
Implementations§
Source§impl Issuer
impl Issuer
pub fn create_schema( issuer_did: &str, name: &str, version: &str, attrs: &str, ) -> Result<(String, String), ErrorCode>
Sourcepub fn create_schema_timeout(
issuer_did: &str,
name: &str,
version: &str,
attrs: &str,
timeout: Duration,
) -> Result<(String, String), ErrorCode>
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
Sourcepub fn create_schema_async<F>(
issuer_did: &str,
name: &str,
version: &str,
attrs: &str,
closure: F,
) -> ErrorCode
pub fn create_schema_async<F>( issuer_did: &str, name: &str, version: &str, attrs: &str, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
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>
Sourcepub 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>
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
Sourcepub 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
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
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
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>
Sourcepub 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>
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
Sourcepub 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
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
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn create_credential_offer( wallet_handle: IndyHandle, cred_def_id: &str, ) -> Result<String, ErrorCode>
Sourcepub fn create_credential_offer_timeout(
wallet_handle: IndyHandle,
cred_def_id: &str,
timeout: Duration,
) -> Result<String, ErrorCode>
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
Sourcepub fn create_credential_offer_async<F>(
wallet_handle: IndyHandle,
cred_def_id: &str,
closure: F,
) -> ErrorCode
pub fn create_credential_offer_async<F>( wallet_handle: IndyHandle, cred_def_id: &str, closure: F, ) -> ErrorCode
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
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>
Sourcepub 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>
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
Sourcepub 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
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
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn revoke_credential( wallet_handle: IndyHandle, blob_storage_reader_cfg_handle: IndyHandle, rev_reg_id: &str, cred_revoc_id: &str, ) -> Result<String, ErrorCode>
Sourcepub 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>
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
Sourcepub 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
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
closure
- the closure that is called when finished
§Returns
errorcode
- errorcode from calling ffi function. The closure receives the return result
pub fn merge_revocation_registry_deltas( rev_reg_delta_json: &str, other_rev_reg_delta_json: &str, ) -> Result<String, ErrorCode>
Sourcepub fn merge_revocation_registry_deltas_timeout(
rev_reg_delta_json: &str,
other_rev_reg_delta_json: &str,
timeout: Duration,
) -> Result<String, ErrorCode>
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
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> 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