pub struct CredentialDefinitionCreateOptions {
pub schema_id: String,
pub tag: String,
pub support_revocation: bool,
pub revocation_registry_size: Option<i32>,
}Expand description
Options provided when registering a credential definition on the ledger
Fields§
§schema_id: StringSchema id that the credential definition will be linked to
tag: StringOptional tag used for the credential
If none is supplied default will be used
support_revocation: boolWhether the credential definition supports revocation
revocation_registry_size: Option<i32>The size of the revocation registry, how many credentials fit in the revocation registry
Trait Implementations§
Source§impl Default for CredentialDefinitionCreateOptions
impl Default for CredentialDefinitionCreateOptions
Source§fn default() -> CredentialDefinitionCreateOptions
fn default() -> CredentialDefinitionCreateOptions
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CredentialDefinitionCreateOptions
impl<'de> Deserialize<'de> for CredentialDefinitionCreateOptions
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for CredentialDefinitionCreateOptions
impl RefUnwindSafe for CredentialDefinitionCreateOptions
impl Send for CredentialDefinitionCreateOptions
impl Sync for CredentialDefinitionCreateOptions
impl Unpin for CredentialDefinitionCreateOptions
impl UnwindSafe for CredentialDefinitionCreateOptions
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