pub struct AllowanceRejection { /* private fields */ }Expand description
Rejection Event Message correlated to one Allowance Proposal.
Implementations§
Source§impl AllowanceRejection
impl AllowanceRejection
Sourcepub fn new(
event_id: EventId,
allowance_id: AllowanceId,
proposal_event_id: EventId,
) -> Result<Self>
pub fn new( event_id: EventId, allowance_id: AllowanceId, proposal_event_id: EventId, ) -> Result<Self>
Create a V1 Allowance Rejection with a distinct causal Event ID.
Sourcepub fn kind(&self) -> PrivateMessageKind
pub fn kind(&self) -> PrivateMessageKind
Access the Private Message Kind.
Sourcepub fn allowance_id(&self) -> &AllowanceId
pub fn allowance_id(&self) -> &AllowanceId
Access the Allowance ID.
Sourcepub fn proposal_event_id(&self) -> &EventId
pub fn proposal_event_id(&self) -> &EventId
Access the referenced Proposal Event ID.
Sourcepub fn validate_for_proposal(
&self,
proposal: &AllowanceProposal,
authenticated_sender_role: AllowanceRole,
) -> Result<()>
pub fn validate_for_proposal( &self, proposal: &AllowanceProposal, authenticated_sender_role: AllowanceRole, ) -> Result<()>
Check causal references and that the authenticated sender is the proposal recipient.
Trait Implementations§
Source§impl Clone for AllowanceRejection
impl Clone for AllowanceRejection
Source§impl Debug for AllowanceRejection
impl Debug for AllowanceRejection
impl Eq for AllowanceRejection
Source§impl PartialEq for AllowanceRejection
impl PartialEq for AllowanceRejection
impl StructuralPartialEq for AllowanceRejection
Auto Trait Implementations§
impl Freeze for AllowanceRejection
impl RefUnwindSafe for AllowanceRejection
impl Send for AllowanceRejection
impl Sync for AllowanceRejection
impl Unpin for AllowanceRejection
impl UnsafeUnpin for AllowanceRejection
impl UnwindSafe for AllowanceRejection
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