pub struct PolicyUpdate {
pub status: Option<u8>,
pub allow_reads: Option<bool>,
pub allow_writes: Option<bool>,
pub allow_admin: Option<bool>,
pub rate_limit: Option<u32>,
pub spend_per_tx: Option<u128>,
pub spend_epoch: Option<u128>,
pub hitl_threshold: Option<u128>,
pub tool_permissions: Vec<(AccountId, bool)>,
}Expand description
Policy fields an owner may update
Fields§
§status: Option<u8>§allow_reads: Option<bool>§allow_writes: Option<bool>§allow_admin: Option<bool>§rate_limit: Option<u32>§spend_per_tx: Option<u128>§spend_epoch: Option<u128>§hitl_threshold: Option<u128>§tool_permissions: Vec<(AccountId, bool)>Per-tool grants: (tool_cell_id, allowed)
Trait Implementations§
Source§impl Clone for PolicyUpdate
impl Clone for PolicyUpdate
Source§fn clone(&self) -> PolicyUpdate
fn clone(&self) -> PolicyUpdate
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 PolicyUpdate
impl Debug for PolicyUpdate
Source§impl<'de> Deserialize<'de> for PolicyUpdate
impl<'de> Deserialize<'de> for PolicyUpdate
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PolicyUpdate
impl RefUnwindSafe for PolicyUpdate
impl Send for PolicyUpdate
impl Sync for PolicyUpdate
impl Unpin for PolicyUpdate
impl UnsafeUnpin for PolicyUpdate
impl UnwindSafe for PolicyUpdate
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