pub struct SettlementAllocation {
pub id: String,
pub project_id: String,
pub obligation_id: String,
pub beneficiary_did: String,
pub allocated_cents: i64,
pub currency: String,
pub source_pool_id: String,
pub beneficiary_receipt_hash: Option<u64>,
pub settled_at_unix: u32,
}Expand description
Stage 8 — Settlement Allocation record (maps pool funds to a specific beneficiary obligation).
Fields§
§id: String§project_id: String§obligation_id: String§beneficiary_did: String§allocated_cents: i64§currency: String§source_pool_id: String§beneficiary_receipt_hash: Option<u64>§settled_at_unix: u32Implementations§
Source§impl SettlementAllocation
impl SettlementAllocation
Sourcepub const fn has_verified_receipt(&self) -> bool
pub const fn has_verified_receipt(&self) -> bool
True only when a positive allocation is backed by a verified beneficiary receipt hash.
Sourcepub fn compile_to_quins(&self, out: &mut [NQuin]) -> usize
pub fn compile_to_quins(&self, out: &mut [NQuin]) -> usize
Zero-heap compilation into 48-byte NQuins.
Trait Implementations§
Source§impl Clone for SettlementAllocation
impl Clone for SettlementAllocation
Source§impl Debug for SettlementAllocation
impl Debug for SettlementAllocation
Source§impl<'de> Deserialize<'de> for SettlementAllocation
impl<'de> Deserialize<'de> for SettlementAllocation
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for SettlementAllocation
Source§impl PartialEq for SettlementAllocation
impl PartialEq for SettlementAllocation
Source§impl Serialize for SettlementAllocation
impl Serialize for SettlementAllocation
impl StructuralPartialEq for SettlementAllocation
Auto Trait Implementations§
impl Freeze for SettlementAllocation
impl RefUnwindSafe for SettlementAllocation
impl Send for SettlementAllocation
impl Sync for SettlementAllocation
impl Unpin for SettlementAllocation
impl UnsafeUnpin for SettlementAllocation
impl UnwindSafe for SettlementAllocation
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