pub struct LayoutManifest {
pub name: &'static str,
pub disc: u8,
pub version: u8,
pub layout_id: [u8; 8],
pub total_size: usize,
pub field_count: usize,
pub fields: &'static [FieldDescriptor],
}Expand description
A layout manifest describing an account type.
Fields§
§name: &'static strLayout name.
disc: u8Discriminator byte.
version: u8Version byte.
layout_id: [u8; 8]Layout ID (8-byte fingerprint).
total_size: usizeTotal byte size including header.
field_count: usizeNumber of fields (not counting header).
fields: &'static [FieldDescriptor]Field descriptors (static slice). Empty for legacy manifests.
Trait Implementations§
Source§impl Clone for LayoutManifest
impl Clone for LayoutManifest
Source§fn clone(&self) -> LayoutManifest
fn clone(&self) -> LayoutManifest
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 LayoutManifest
impl Debug for LayoutManifest
Source§impl Display for LayoutManifest
impl Display for LayoutManifest
impl Copy for LayoutManifest
Auto Trait Implementations§
impl Freeze for LayoutManifest
impl RefUnwindSafe for LayoutManifest
impl Send for LayoutManifest
impl Sync for LayoutManifest
impl Unpin for LayoutManifest
impl UnsafeUnpin for LayoutManifest
impl UnwindSafe for LayoutManifest
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