pub struct WriteRecord {
pub destination: String,
pub key: String,
pub has_grant: bool,
}Expand description
A write operation that needs governance validation.
Represents a single write the agent attempted during execution.
The runtime collects these and passes them to
WriteGovernance::validate_writes after execution completes.
§Example
use pe_core::validation::WriteRecord;
let write = WriteRecord {
destination: "collective".into(),
key: "project_notes".into(),
has_grant: false,
};Fields§
§destination: StringTarget store: “own_memory”, “collective”, “vault”, “task_store”.
key: StringKey being written.
has_grant: boolWhether a DataGrant was obtained for this write.
Trait Implementations§
Source§impl Clone for WriteRecord
impl Clone for WriteRecord
Source§fn clone(&self) -> WriteRecord
fn clone(&self) -> WriteRecord
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 WriteRecord
impl Debug for WriteRecord
Source§impl<'de> Deserialize<'de> for WriteRecord
impl<'de> Deserialize<'de> for WriteRecord
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 WriteRecord
impl RefUnwindSafe for WriteRecord
impl Send for WriteRecord
impl Sync for WriteRecord
impl Unpin for WriteRecord
impl UnsafeUnpin for WriteRecord
impl UnwindSafe for WriteRecord
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