pub struct MetadataKey {
pub source_address: Address,
pub target_address: Address,
pub scoped_metadata_key: u64,
pub target_id: u64,
pub metadata_type: MetadataType,
}Expand description
チェーンに記録されたメタデータの1件を指すキー。catapult の state::MetadataKey。
アドレスやモザイクの ID は、ネームスペースを解決したあとのもの。
Fields§
§source_address: Addressメタデータを付けた人
target_address: Addressメタデータを付ける対象の持ち主
scoped_metadata_key: u64§target_id: u64モザイクやネームスペースの ID。アカウントのメタデータなら 0
metadata_type: MetadataTypeImplementations§
Source§impl MetadataKey
impl MetadataKey
Sourcepub fn unique_key(&self) -> Hash256
pub fn unique_key(&self) -> Hash256
1件ごとに一意なハッシュ。catapult の MetadataKey::uniqueKey で、状態の中でメタデータを探すのに使う。
付けた人、対象の持ち主、キー、対象の ID、種類を続けた SHA3-256。
Trait Implementations§
Source§impl Clone for MetadataKey
impl Clone for MetadataKey
Source§fn clone(&self) -> MetadataKey
fn clone(&self) -> MetadataKey
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for MetadataKey
Source§impl Debug for MetadataKey
impl Debug for MetadataKey
impl Eq for MetadataKey
Source§impl Hash for MetadataKey
impl Hash for MetadataKey
Source§impl PartialEq for MetadataKey
impl PartialEq for MetadataKey
impl StructuralPartialEq for MetadataKey
Auto Trait Implementations§
impl Freeze for MetadataKey
impl RefUnwindSafe for MetadataKey
impl Send for MetadataKey
impl Sync for MetadataKey
impl Unpin for MetadataKey
impl UnsafeUnpin for MetadataKey
impl UnwindSafe for MetadataKey
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