pub struct AgentWrite {
pub path: String,
pub host: String,
pub session: String,
pub event: i64,
pub ts_ms: i64,
pub sha256: Option<String>,
pub before: Option<String>,
pub untrusted: Option<Untrusted>,
}Expand description
One session’s newest recorded write of a file, as the caller found it.
Fields§
§path: StringThe file, relative to the repository, /-separated.
host: StringThe host’s id.
session: StringThe host’s session id, as the audit log has it.
event: i64The audit event of the call that wrote it.
ts_ms: i64When that call was recorded (ms since the epoch).
sha256: Option<String>The content hash the write left, when the hook knew it.
before: Option<String>The content hash before it ("": no file), when the hook knew it.
untrusted: Option<Untrusted>What untrusted content the session had read before the write.
Trait Implementations§
Source§impl Clone for AgentWrite
impl Clone for AgentWrite
Source§impl Debug for AgentWrite
impl Debug for AgentWrite
impl Eq for AgentWrite
Source§impl PartialEq for AgentWrite
impl PartialEq for AgentWrite
impl StructuralPartialEq for AgentWrite
Auto Trait Implementations§
impl Forget for AgentWrite
impl Freeze for AgentWrite
impl Move for AgentWrite
impl RefUnwindSafe for AgentWrite
impl Send for AgentWrite
impl Sync for AgentWrite
impl Unpin for AgentWrite
impl UnsafeUnpin for AgentWrite
impl UnwindSafe for AgentWrite
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