pub struct LogEntry { /* private fields */ }Expand description
Log entry structure
Implementations§
Source§impl LogEntry
impl LogEntry
Sourcepub fn builder(
event_type: EventType,
agent_id: String,
agent_org: String,
) -> LogEntryBuilder
pub fn builder( event_type: EventType, agent_id: String, agent_org: String, ) -> LogEntryBuilder
Create a builder for a new log entry.
Sourcepub fn new(
event_type: EventType,
agent_id: String,
agent_org: String,
) -> Result<Self, LogError>
pub fn new( event_type: EventType, agent_id: String, agent_org: String, ) -> Result<Self, LogError>
Constructor using default builder values.
This function is fail-closed: no synthetic/fallback entry is produced.
pub fn entry_id(&self) -> &str
pub fn event_type(&self) -> EventType
pub fn decision(&self) -> Decision
pub fn proof_envelope_v1_b64(&self) -> Option<&str>
pub fn rule_id(&self) -> Option<&str>
pub fn integrity(&self) -> &Integrity
pub fn timestamp_iso(&self) -> &str
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogEntry
impl<'de> Deserialize<'de> for LogEntry
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 LogEntry
impl RefUnwindSafe for LogEntry
impl Send for LogEntry
impl Sync for LogEntry
impl Unpin for LogEntry
impl UnsafeUnpin for LogEntry
impl UnwindSafe for LogEntry
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