made_app/workers/
ceremony_work_claim_failure.rs1use made_core::error::DomainError;
2use made_core::value_objects::CeremonyId;
3
4#[derive(Debug, Clone, PartialEq)]
6pub struct CeremonyWorkClaimFailure {
7 ceremony_id: CeremonyId,
8 error: DomainError,
9}
10
11impl CeremonyWorkClaimFailure {
12 #[must_use]
13 pub const fn new(ceremony_id: CeremonyId, error: DomainError) -> Self {
14 Self { ceremony_id, error }
15 }
16
17 #[must_use]
18 pub const fn ceremony_id(&self) -> &CeremonyId {
19 &self.ceremony_id
20 }
21
22 #[must_use]
23 pub const fn error(&self) -> &DomainError {
24 &self.error
25 }
26}