pub struct Policy {
pub admin: [u8; 32],
pub target: [u8; 32],
pub policy_id: u64,
pub state_flags: u8,
pub config_flags: u8,
pub attester: [u8; 32],
pub rules: Vec<Rule>,
}Expand description
The parts of a policy account a client needs to build a CALL.
Fields§
§admin: [u8; 32]§target: [u8; 32]§policy_id: u64§state_flags: u8§config_flags: u8§attester: [u8; 32]§rules: Vec<Rule>Implementations§
Trait Implementations§
impl Eq for Policy
impl StructuralPartialEq for Policy
Auto Trait Implementations§
impl Freeze for Policy
impl RefUnwindSafe for Policy
impl Send for Policy
impl Sync for Policy
impl Unpin for Policy
impl UnsafeUnpin for Policy
impl UnwindSafe for Policy
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