pub struct MetadataAddress {
pub bech32: String,
pub bytes: Vec<u8>,
pub key_type: KeyType,
}Expand description
Represents a Provenance MetadataAddress type
Fields§
§bech32: String§bytes: Vec<u8>§key_type: KeyTypeImplementations§
Source§impl MetadataAddress
impl MetadataAddress
Sourcepub fn contract_specification(
contract_specification_uuid: Uuid,
) -> Result<MetadataAddress, StdError>
pub fn contract_specification( contract_specification_uuid: Uuid, ) -> Result<MetadataAddress, StdError>
Create a Contract Specification Metadata Address from a Uuid
e.g. contractspec1qw07zlu62ms5zk9g4azsdq9vnesqy4dtgm
Sourcepub fn scope_specification(
scope_specification_uuid: Uuid,
) -> Result<MetadataAddress, StdError>
pub fn scope_specification( scope_specification_uuid: Uuid, ) -> Result<MetadataAddress, StdError>
Create a Scope Specification Metadata Address from a Uuid
e.g. scopespec1qj07zlu62ms5zk9g4azsdq9vnesqxcv7hd
Sourcepub fn scope(scope_uuid: Uuid) -> Result<MetadataAddress, StdError>
pub fn scope(scope_uuid: Uuid) -> Result<MetadataAddress, StdError>
Create a Scope Metadata Address from a Uuid
e.g. scope1qz07zlu62ms5zk9g4azsdq9vnesqg74ssc
Sourcepub fn record(
scope_uuid: Uuid,
record_name: String,
) -> Result<MetadataAddress, StdError>
pub fn record( scope_uuid: Uuid, record_name: String, ) -> Result<MetadataAddress, StdError>
Create a Record Metadata Address from a Uuid and Record name
e.g. record1q207zlu62ms5zk9g4azsdq9vneswsu3m8wtqu0zfqu9edf8r7l4jugz3hcl
Sourcepub fn record_specification(
contract_specification_uuid: Uuid,
record_specification_name: String,
) -> Result<MetadataAddress, StdError>
pub fn record_specification( contract_specification_uuid: Uuid, record_specification_name: String, ) -> Result<MetadataAddress, StdError>
Create a Record Specification Metadata Address from a Contract Specification Uuid and Record Specification name
e.g. recspec1qk07zlu62ms5zk9g4azsdq9vneswsu3m8wtqu0zfqu9edf8r7l4juadl3c0
Sourcepub fn session(
scope_uuid: Uuid,
session_uuid: Uuid,
) -> Result<MetadataAddress, StdError>
pub fn session( scope_uuid: Uuid, session_uuid: Uuid, ) -> Result<MetadataAddress, StdError>
Create a Session Metadata Address from Scope and Session Uuid
e.g. session1qx07zlu62ms5zk9g4azsdq9vnesflctlnftwzs2c4zh52p5q4j0xqrysdme
pub fn to_bytes(&self) -> Vec<u8> ⓘ
pub fn hash_bytes(data: String) -> Vec<u8> ⓘ
Trait Implementations§
Source§impl Clone for MetadataAddress
impl Clone for MetadataAddress
Source§fn clone(&self) -> MetadataAddress
fn clone(&self) -> MetadataAddress
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for MetadataAddress
impl Debug for MetadataAddress
Source§impl PartialEq for MetadataAddress
impl PartialEq for MetadataAddress
impl StructuralPartialEq for MetadataAddress
Auto Trait Implementations§
impl Freeze for MetadataAddress
impl RefUnwindSafe for MetadataAddress
impl Send for MetadataAddress
impl Sync for MetadataAddress
impl Unpin for MetadataAddress
impl UnwindSafe for MetadataAddress
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
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>
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