pub struct FileRecord {
pub path: String,
pub host: String,
pub session: String,
pub event: i64,
pub ts_ms: i64,
pub evidence: Evidence,
pub lines: Vec<LineRange>,
pub untrusted: Option<Untrusted>,
}Expand description
A file of a commit an agent session wrote.
Fields§
§path: StringThe file, relative to the repository.
host: StringThe host’s id.
session: StringThe session, as the audit log has it.
event: i64The audit event of the write.
ts_ms: i64When it was recorded (ms since the epoch).
evidence: EvidenceHow the write is tied to the file.
lines: Vec<LineRange>The added lines that are the session’s: all of them for
Evidence::Lines, none claimed otherwise.
untrusted: Option<Untrusted>What untrusted content the session had read before the write.
Implementations§
Source§impl FileRecord
impl FileRecord
Sourcepub fn line_count(&self) -> u64
pub fn line_count(&self) -> u64
How many added lines are claimed.
Trait Implementations§
Source§impl Clone for FileRecord
impl Clone for FileRecord
Source§impl Debug for FileRecord
impl Debug for FileRecord
Source§impl<'de> Deserialize<'de> for FileRecord
impl<'de> Deserialize<'de> for FileRecord
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
impl Eq for FileRecord
Source§impl PartialEq for FileRecord
impl PartialEq for FileRecord
Source§impl Serialize for FileRecord
impl Serialize for FileRecord
impl StructuralPartialEq for FileRecord
Auto Trait Implementations§
impl Forget for FileRecord
impl Freeze for FileRecord
impl Move for FileRecord
impl RefUnwindSafe for FileRecord
impl Send for FileRecord
impl Sync for FileRecord
impl Unpin for FileRecord
impl UnsafeUnpin for FileRecord
impl UnwindSafe for FileRecord
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