pub struct HashLockJson {
pub version: u16,
pub owner_address: String,
pub mosaic_id: String,
pub amount: String,
pub end_height: String,
pub status: u8,
pub hash: String,
}Expand description
HashLockEntryDTO。status は 0 がまだ使っていない、1 が使った(catapult の LockStatus)
Fields§
§version: u16§owner_address: String§mosaic_id: String§amount: String§end_height: String§status: u8§hash: StringImplementations§
Source§impl HashLockJson
impl HashLockJson
Sourcepub fn to_state_bytes(&self) -> Result<Vec<u8>, RestError>
pub fn to_state_bytes(&self) -> Result<Vec<u8>, RestError>
状態のバイト列。catapult の HashLockInfoSerializer。
Sourcepub fn from_state_bytes(bytes: &[u8]) -> Result<Self, RestError>
pub fn from_state_bytes(bytes: &[u8]) -> Result<Self, RestError>
状態のバイト列から、REST が返す形にする。HashLockJson::to_state_bytes の逆
pub fn state_hash(&self) -> Result<Hash256, RestError>
Trait Implementations§
Source§impl Clone for HashLockJson
impl Clone for HashLockJson
Source§fn clone(&self) -> HashLockJson
fn clone(&self) -> HashLockJson
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 moreSource§impl Debug for HashLockJson
impl Debug for HashLockJson
Source§impl<'de> Deserialize<'de> for HashLockJson
impl<'de> Deserialize<'de> for HashLockJson
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
impl Eq for HashLockJson
Source§impl PartialEq for HashLockJson
impl PartialEq for HashLockJson
Source§impl Serialize for HashLockJson
impl Serialize for HashLockJson
impl StructuralPartialEq for HashLockJson
Auto Trait Implementations§
impl Freeze for HashLockJson
impl RefUnwindSafe for HashLockJson
impl Send for HashLockJson
impl Sync for HashLockJson
impl Unpin for HashLockJson
impl UnsafeUnpin for HashLockJson
impl UnwindSafe for HashLockJson
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