pub struct LogEntryBuilder { /* private fields */ }Expand description
Immutable builder for LogEntry.
Implementations§
Source§impl LogEntryBuilder
impl LogEntryBuilder
pub fn mission( self, mission_id: Option<String>, mission_type: Option<String>, ) -> Self
pub fn request(self, request: RequestContext) -> Self
pub fn compliance(self, compliance: Compliance) -> Self
pub fn decision(self, decision: Decision) -> Self
Sourcepub fn proof_envelope_v1_bytes(self, bytes: &[u8]) -> Self
pub fn proof_envelope_v1_bytes(self, bytes: &[u8]) -> Self
Attach a canonical ProofEnvelopeV1 payload (base64-encoded for JSON storage).
pub fn rule_id(self, rule_id: impl Into<String>) -> Self
pub fn build(self) -> Result<LogEntry, LogError>
Trait Implementations§
Source§impl Clone for LogEntryBuilder
impl Clone for LogEntryBuilder
Source§fn clone(&self) -> LogEntryBuilder
fn clone(&self) -> LogEntryBuilder
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for LogEntryBuilder
impl RefUnwindSafe for LogEntryBuilder
impl Send for LogEntryBuilder
impl Sync for LogEntryBuilder
impl Unpin for LogEntryBuilder
impl UnsafeUnpin for LogEntryBuilder
impl UnwindSafe for LogEntryBuilder
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