pub struct TrustFlags {
pub reject_closed: bool,
pub require_immutable: bool,
pub min_version: u8,
}Expand description
Policy flags for additional constraints.
Fields§
§reject_closed: boolReject accounts with the close sentinel (disc == 0xFF).
require_immutable: boolRequire the account to be immutable (not writable).
min_version: u8Minimum version (byte 1 of header). 0 = no minimum.
Implementations§
Trait Implementations§
Source§impl Clone for TrustFlags
impl Clone for TrustFlags
Source§fn clone(&self) -> TrustFlags
fn clone(&self) -> TrustFlags
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 moreimpl Copy for TrustFlags
Auto Trait Implementations§
impl Freeze for TrustFlags
impl RefUnwindSafe for TrustFlags
impl Send for TrustFlags
impl Sync for TrustFlags
impl Unpin for TrustFlags
impl UnsafeUnpin for TrustFlags
impl UnwindSafe for TrustFlags
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