pub struct Record {
pub id: Id,
pub target: Target,
pub gate: ReviewGate,
pub lifecycle: Lifecycle,
pub requested_by: ActorRef,
pub requested_at: DateTime<Utc>,
pub audit_refs: Vec<EventId>,
}Expand description
Approval record showing who decided, what target was reviewed, and what lifecycle state resulted.
Fields§
§id: IdId retained from source records for staff review, safety gates, and workflow joins.
target: TargetTarget retained from source records for staff review, safety gates, and workflow joins.
gate: ReviewGateGate retained from source records for staff review, safety gates, and workflow joins.
lifecycle: LifecycleLifecycle retained from source records for staff review, safety gates, and workflow joins.
requested_by: ActorRefRequested by retained from source records for staff review, safety gates, and workflow joins.
requested_at: DateTime<Utc>Requested at retained from source records for staff review, safety gates, and workflow joins.
audit_refs: Vec<EventId>Audit refs retained from source records for staff review, safety gates, and workflow joins.
Implementations§
Source§impl Record
impl Record
Sourcepub fn builder() -> RecordBuilder
pub fn builder() -> RecordBuilder
Create an instance of Record using the builder syntax
Source§impl Record
impl Record
Sourcepub fn status(&self) -> Status
pub fn status(&self) -> Status
Returns the normalized operational status represented by this record.
Sourcepub fn is_applicable(&self) -> bool
pub fn is_applicable(&self) -> bool
Reports whether this approval gate currently applies to the target workflow.
Sourcepub fn is_terminal_decision(&self) -> bool
pub fn is_terminal_decision(&self) -> bool
Reports whether the review lifecycle has reached an approval, rejection, or non-applicable endpoint.