pub struct AccountRestrictionsJson {
pub version: u16,
pub address: String,
pub restrictions: Vec<AccountRestrictionJson>,
}Expand description
AccountRestrictionsDTO。値のある種類だけ
Fields§
§version: u16§address: String§restrictions: Vec<AccountRestrictionJson>Implementations§
Source§impl AccountRestrictionsJson
impl AccountRestrictionsJson
Sourcepub fn to_state_bytes(&self) -> Result<Vec<u8>, RestError>
pub fn to_state_bytes(&self) -> Result<Vec<u8>, RestError>
状態のバイト列。catapult の AccountRestrictionsSerializer。
Sourcepub fn from_state_bytes(bytes: &[u8]) -> Result<Self, RestError>
pub fn from_state_bytes(bytes: &[u8]) -> Result<Self, RestError>
状態のバイト列から、REST が返す形にする。AccountRestrictionsJson::to_state_bytes の逆
pub fn state_hash(&self) -> Result<Hash256, RestError>
Trait Implementations§
Source§impl Clone for AccountRestrictionsJson
impl Clone for AccountRestrictionsJson
Source§fn clone(&self) -> AccountRestrictionsJson
fn clone(&self) -> AccountRestrictionsJson
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 AccountRestrictionsJson
impl Debug for AccountRestrictionsJson
Source§impl<'de> Deserialize<'de> for AccountRestrictionsJson
impl<'de> Deserialize<'de> for AccountRestrictionsJson
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 AccountRestrictionsJson
Source§impl PartialEq for AccountRestrictionsJson
impl PartialEq for AccountRestrictionsJson
Source§impl Serialize for AccountRestrictionsJson
impl Serialize for AccountRestrictionsJson
impl StructuralPartialEq for AccountRestrictionsJson
Auto Trait Implementations§
impl Freeze for AccountRestrictionsJson
impl RefUnwindSafe for AccountRestrictionsJson
impl Send for AccountRestrictionsJson
impl Sync for AccountRestrictionsJson
impl Unpin for AccountRestrictionsJson
impl UnsafeUnpin for AccountRestrictionsJson
impl UnwindSafe for AccountRestrictionsJson
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