pub struct AllowanceAcceptance { /* private fields */ }Expand description
Acceptance Event Message correlated to one Allowance Proposal.
Implementations§
Source§impl AllowanceAcceptance
impl AllowanceAcceptance
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 Acceptance 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 AllowanceAcceptance
impl Clone for AllowanceAcceptance
Source§impl Debug for AllowanceAcceptance
impl Debug for AllowanceAcceptance
impl Eq for AllowanceAcceptance
Source§impl PartialEq for AllowanceAcceptance
impl PartialEq for AllowanceAcceptance
impl StructuralPartialEq for AllowanceAcceptance
Auto Trait Implementations§
impl Freeze for AllowanceAcceptance
impl RefUnwindSafe for AllowanceAcceptance
impl Send for AllowanceAcceptance
impl Sync for AllowanceAcceptance
impl Unpin for AllowanceAcceptance
impl UnsafeUnpin for AllowanceAcceptance
impl UnwindSafe for AllowanceAcceptance
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