pub struct WriteGovernance {
pub own_memory: WriteAccess,
pub collective: WriteAccess,
pub vault: WriteAccess,
pub task_store: WriteAccess,
}Expand description
What can be persisted, where.
Fields§
§own_memory: WriteAccess§collective: WriteAccess§vault: WriteAccess§task_store: WriteAccessImplementations§
Source§impl WriteGovernance
impl WriteGovernance
Sourcepub fn validate_writes(&self, writes: &[WriteRecord]) -> Result<(), PeError>
pub fn validate_writes(&self, writes: &[WriteRecord]) -> Result<(), PeError>
Validate that all writes respect this governance policy.
Checks each write’s destination against the access level. ReadOnly destinations reject all writes. RequiresGrant destinations reject writes without a grant.
Trait Implementations§
Source§impl Clone for WriteGovernance
impl Clone for WriteGovernance
Source§fn clone(&self) -> WriteGovernance
fn clone(&self) -> WriteGovernance
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 WriteGovernance
impl Debug for WriteGovernance
Source§impl Default for WriteGovernance
impl Default for WriteGovernance
Source§impl<'de> Deserialize<'de> for WriteGovernance
impl<'de> Deserialize<'de> for WriteGovernance
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 WriteGovernance
impl RefUnwindSafe for WriteGovernance
impl Send for WriteGovernance
impl Sync for WriteGovernance
impl Unpin for WriteGovernance
impl UnsafeUnpin for WriteGovernance
impl UnwindSafe for WriteGovernance
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