pub struct LayoutBehavior {
pub requires_signer: bool,
pub affects_balance: bool,
pub affects_authority: bool,
pub mutation_class: MutationClass,
}Expand description
Describes how a layout behaves under mutation, what policy it expects, and what receipt profile it should produce.
Attach this to a layout manifest to give Hopper’s lint engine, Manager, and receipt system enough context to validate mutations semantically.
Fields§
§requires_signer: boolWhether any instruction mutating this layout requires a signer.
affects_balance: boolWhether mutations affect balance/financial fields.
Whether mutations affect authority/owner/delegate fields.
mutation_class: MutationClassPrimary mutation class for this layout.
Implementations§
Source§impl LayoutBehavior
impl LayoutBehavior
Sourcepub const APPEND_ONLY: Self
pub const APPEND_ONLY: Self
Behavior for an append-only journal or audit log.
Trait Implementations§
Source§impl Clone for LayoutBehavior
impl Clone for LayoutBehavior
Source§fn clone(&self) -> LayoutBehavior
fn clone(&self) -> LayoutBehavior
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 LayoutBehavior
impl Debug for LayoutBehavior
Source§impl Display for LayoutBehavior
impl Display for LayoutBehavior
impl Copy for LayoutBehavior
Auto Trait Implementations§
impl Freeze for LayoutBehavior
impl RefUnwindSafe for LayoutBehavior
impl Send for LayoutBehavior
impl Sync for LayoutBehavior
impl Unpin for LayoutBehavior
impl UnsafeUnpin for LayoutBehavior
impl UnwindSafe for LayoutBehavior
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