pub enum MsgAddress {
None,
Std {
workchain: i8,
account: [u8; 32],
},
}Expand description
The cell model a decoded account carries, defined in ton-net-cell and surfaced here.
The list is the closure of one rule over the cell model: a type a method on a
re-exported cell type answers with is nameable here, or that method is unusable
through the facade. An Account carries its code and data as Cells, and from a
Cell the answers this reaches are a Slice from Cell::parse, an
Identity from Cell::identity, a Builder from Cell::to_builder, and a
CellError from every read that can fail. Types a cell answers with that need no
name of their own, a Vec<u8> from Cell::to_boc and a String from
Cell::dump, are outside it. A
Slice adds the Dict that Slice::load_dict answers with, the Lookup,
DictEntry and DictIter that a dictionary is read through, and the
MsgAddress that Slice::load_address reads.
MsgAddress is the wire form an address takes inside a message, which is not
Address: that one is the form a person writes and a caller parses.
The block layer is not closed the same way. Account::decode answers with a
BlockError, which is not nameable here, so a caller reads that failure through the
From conversion into Error rather than by naming it. Closing that is a separate
decision about which layer’s error a consumer sees.
What the rule does not pull in stays out. The augmented and prefix dictionaries, the proof builders, and the streaming readers are reachable from no method on a type this crate returns, so a consumer whose need is the cell engine on its own depends on ton-net-cell rather than finding half of it here. An account address, as a message carries it.
Variants§
None
No account, the form an empty source or an uninitialised destination takes.
Std
A standard internal address: a workchain and the account id within it.
Trait Implementations§
Source§impl Clone for MsgAddress
impl Clone for MsgAddress
Source§fn clone(&self) -> MsgAddress
fn clone(&self) -> MsgAddress
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more