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: IdSource-backed id carried by this normalized pet-resort entity.
target: TargetSource-backed target carried by this normalized pet-resort entity.
gate: ReviewGateSource-backed gate carried by this normalized pet-resort entity.
lifecycle: LifecycleSource-backed lifecycle carried by this normalized pet-resort entity.
requested_by: ActorRefSource-backed requested by carried by this normalized pet-resort entity.
requested_at: DateTime<Utc>Source-backed requested at carried by this normalized pet-resort entity.
audit_refs: Vec<EventId>Source-backed audit refs carried by this normalized pet-resort entity.
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.