pub struct AccountJson {
pub version: u16,
pub address: String,
pub address_height: String,
pub public_key: String,
pub public_key_height: String,
pub account_type: u8,
pub supplemental_public_keys: SupplementalPublicKeysJson,
pub importance: String,
pub importance_height: String,
pub activity_buckets: Vec<ActivityBucketJson>,
pub mosaics: Vec<BalanceJson>,
}Expand description
AccountDTO。
Fields§
§version: u16§address: String§address_height: String§public_key: String§public_key_height: String§account_type: u8§supplemental_public_keys: SupplementalPublicKeysJson§importance: Stringimportance の履歴の先頭。大口のアカウントでなければ “0”
importance_height: String§activity_buckets: Vec<ActivityBucketJson>大口のアカウントだけが持つ、活動の記録
mosaics: Vec<BalanceJson>Implementations§
Source§impl AccountJson
impl AccountJson
Sourcepub fn to_state_bytes(&self) -> Result<Vec<u8>, RestError>
pub fn to_state_bytes(&self) -> Result<Vec<u8>, RestError>
状態のバイト列。catapult の AccountStateNonHistoricalSerializer。
Sourcepub fn from_state_bytes(bytes: &[u8]) -> Result<Self, RestError>
pub fn from_state_bytes(bytes: &[u8]) -> Result<Self, RestError>
状態のバイト列から、REST が返す形にする。AccountJson::to_state_bytes の逆。ノードが REST の口で返すときに使う
Sourcepub fn state_hash(&self) -> Result<Hash256, RestError>
pub fn state_hash(&self) -> Result<Hash256, RestError>
状態の木の葉の値。
Trait Implementations§
Source§impl Clone for AccountJson
impl Clone for AccountJson
Source§fn clone(&self) -> AccountJson
fn clone(&self) -> AccountJson
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 AccountJson
impl Debug for AccountJson
Source§impl<'de> Deserialize<'de> for AccountJson
impl<'de> Deserialize<'de> for AccountJson
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 AccountJson
Source§impl PartialEq for AccountJson
impl PartialEq for AccountJson
Source§impl Serialize for AccountJson
impl Serialize for AccountJson
impl StructuralPartialEq for AccountJson
Auto Trait Implementations§
impl Freeze for AccountJson
impl RefUnwindSafe for AccountJson
impl Send for AccountJson
impl Sync for AccountJson
impl Unpin for AccountJson
impl UnsafeUnpin for AccountJson
impl UnwindSafe for AccountJson
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