pub struct LedgerEntry {Show 14 fields
pub commit_sha: String,
pub verdict: Verdict,
pub disposition: Disposition,
pub claim: String,
pub evidence: Vec<String>,
pub reviewer: ReviewerConfig,
pub summary: String,
pub findings: Vec<String>,
pub structured_findings: Vec<StructuredFinding>,
pub next_steps: Vec<String>,
pub raw_reviewer_output: String,
pub resolution: Option<Resolution>,
pub created_at_unix: u64,
pub updated_at_unix: u64,
}Fields§
§commit_sha: String§verdict: Verdict§disposition: Disposition§claim: String§evidence: Vec<String>§reviewer: ReviewerConfig§summary: String§findings: Vec<String>§structured_findings: Vec<StructuredFinding>§next_steps: Vec<String>§raw_reviewer_output: String§resolution: Option<Resolution>§created_at_unix: u64§updated_at_unix: u64Implementations§
Source§impl LedgerEntry
impl LedgerEntry
pub fn new( commit_sha: impl Into<String>, verdict: Verdict, claim: impl Into<String>, evidence: Vec<String>, reviewer: ReviewerConfig, findings: Vec<String>, ) -> Self
pub fn new_at( commit_sha: impl Into<String>, verdict: Verdict, claim: impl Into<String>, evidence: Vec<String>, reviewer: ReviewerConfig, findings: Vec<String>, timestamp: u64, ) -> Self
pub fn with_structured_review( self, summary: impl Into<String>, structured_findings: Vec<StructuredFinding>, next_steps: Vec<String>, raw_reviewer_output: impl Into<String>, ) -> Self
pub fn is_unresolved_rejection(&self) -> bool
Trait Implementations§
Source§impl Clone for LedgerEntry
impl Clone for LedgerEntry
Source§fn clone(&self) -> LedgerEntry
fn clone(&self) -> LedgerEntry
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 LedgerEntry
impl Debug for LedgerEntry
Source§impl<'de> Deserialize<'de> for LedgerEntry
impl<'de> Deserialize<'de> for LedgerEntry
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 LedgerEntry
Source§impl PartialEq for LedgerEntry
impl PartialEq for LedgerEntry
Source§fn eq(&self, other: &LedgerEntry) -> bool
fn eq(&self, other: &LedgerEntry) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for LedgerEntry
impl Serialize for LedgerEntry
impl StructuralPartialEq for LedgerEntry
Auto Trait Implementations§
impl Freeze for LedgerEntry
impl RefUnwindSafe for LedgerEntry
impl Send for LedgerEntry
impl Sync for LedgerEntry
impl Unpin for LedgerEntry
impl UnsafeUnpin for LedgerEntry
impl UnwindSafe for LedgerEntry
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