pub struct AllowanceProposal { /* private fields */ }Expand description
Proposal Event Message for exact Allowance Terms.
Implementations§
Source§impl AllowanceProposal
impl AllowanceProposal
Sourcepub fn new(
event_id: EventId,
allowance_id: AllowanceId,
proposer_role: AllowanceRole,
terms: AllowanceTerms,
) -> Self
pub fn new( event_id: EventId, allowance_id: AllowanceId, proposer_role: AllowanceRole, terms: AllowanceTerms, ) -> Self
Create a V1 Allowance Proposal.
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 proposer_role(&self) -> AllowanceRole
pub fn proposer_role(&self) -> AllowanceRole
Access the authenticated proposal sender’s assigned role.
Sourcepub fn recipient_role(&self) -> AllowanceRole
pub fn recipient_role(&self) -> AllowanceRole
Access the proposal recipient’s assigned role.
Sourcepub fn terms(&self) -> &AllowanceTerms
pub fn terms(&self) -> &AllowanceTerms
Access the immutable Allowance Terms.
Trait Implementations§
Source§impl Clone for AllowanceProposal
impl Clone for AllowanceProposal
Source§impl Debug for AllowanceProposal
impl Debug for AllowanceProposal
impl Eq for AllowanceProposal
Source§impl PartialEq for AllowanceProposal
impl PartialEq for AllowanceProposal
impl StructuralPartialEq for AllowanceProposal
Auto Trait Implementations§
impl Freeze for AllowanceProposal
impl RefUnwindSafe for AllowanceProposal
impl Send for AllowanceProposal
impl Sync for AllowanceProposal
impl Unpin for AllowanceProposal
impl UnsafeUnpin for AllowanceProposal
impl UnwindSafe for AllowanceProposal
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