pub struct NamespaceJson {
pub version: u16,
pub registration_type: u8,
pub depth: u8,
pub level0: String,
pub level1: Option<String>,
pub level2: Option<String>,
pub alias: AliasJson,
pub parent_id: Option<String>,
pub owner_address: String,
pub start_height: String,
pub end_height: String,
}Expand description
NamespaceDTO。ルートも子も、1つずつ別に返る。
Fields§
§version: u16§registration_type: u8§depth: u8経路の長さ(1から3)
level0: String§level1: Option<String>§level2: Option<String>§alias: AliasJson§parent_id: Option<String>親の ID。ルートは 0000000000000000
owner_address: String§start_height: String§end_height: StringImplementations§
Trait Implementations§
Source§impl Clone for NamespaceJson
impl Clone for NamespaceJson
Source§fn clone(&self) -> NamespaceJson
fn clone(&self) -> NamespaceJson
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 NamespaceJson
impl Debug for NamespaceJson
Source§impl<'de> Deserialize<'de> for NamespaceJson
impl<'de> Deserialize<'de> for NamespaceJson
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 NamespaceJson
Source§impl PartialEq for NamespaceJson
impl PartialEq for NamespaceJson
Source§impl Serialize for NamespaceJson
impl Serialize for NamespaceJson
impl StructuralPartialEq for NamespaceJson
Auto Trait Implementations§
impl Freeze for NamespaceJson
impl RefUnwindSafe for NamespaceJson
impl Send for NamespaceJson
impl Sync for NamespaceJson
impl Unpin for NamespaceJson
impl UnsafeUnpin for NamespaceJson
impl UnwindSafe for NamespaceJson
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