Struct everscale_types::models::message::MessageLayout
source · Expand description
Message payload layout.
Fields§
§init_to_cell: boolWhether to store state init in a child cell.
body_to_cell: boolWhether to store payload as a child cell.
Implementations§
source§impl MessageLayout
impl MessageLayout
sourcepub const fn plain() -> Self
pub const fn plain() -> Self
Returns a plain message layout (init and body stored in the root cell).
sourcepub const fn compute_full_len<'a, C: CellFamily>(
&self,
info: &MsgInfo<C>,
init: &Option<StateInit<C>>,
body: &Option<CellSlice<'a, C>>
) -> (u16, u8)
pub const fn compute_full_len<'a, C: CellFamily>(
&self,
info: &MsgInfo<C>,
init: &Option<StateInit<C>>,
body: &Option<CellSlice<'a, C>>
) -> (u16, u8)
Computes the number of bits and refs for this layout for the root cell.
Trait Implementations§
source§impl Clone for MessageLayout
impl Clone for MessageLayout
source§fn clone(&self) -> MessageLayout
fn clone(&self) -> MessageLayout
Returns a copy of the value. Read more
1.0.0 · 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 MessageLayout
impl Debug for MessageLayout
source§impl PartialEq<MessageLayout> for MessageLayout
impl PartialEq<MessageLayout> for MessageLayout
source§fn eq(&self, other: &MessageLayout) -> bool
fn eq(&self, other: &MessageLayout) -> bool
This method tests for
self and other values to be equal, and is used
by ==.