pub struct NamedObjectBase<O>where
    O: ObjectType,
    O::ContentType: BodyContent,
{ /* private fields */ }

Implementations

大卸八块,映射成其他类型,Move语义
  • desc: O::DescType,
  • body: Option<ObjectMutBody<O::ContentType, O>>
  • signs: ObjectSigns,
  • nonce: Option,

可进一步对body.unwrap().split()

交易对象

new 传入 TxBody,注意 TxBody不是 Tx.body(),这个地方的命名有点冲突 new_multi_body 传入 Vec

Trait Implementations

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more

从 TypelessAnyObject 转成 AnyNamedObject

The type returned in the event of a conversion error.
Performs the conversion.

从 TypelessAnyObject/TypelessCoreObject/TypelessStandardObject/TypelessDECAppObject 转成 具体的强类型

The type returned in the event of a conversion error.
Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.