pub struct Valuation {
pub id: String,
pub project_id: String,
pub submission_id: String,
pub acceptance_id: String,
pub valued_effort_cents: i64,
pub valued_expense_cents: i64,
pub valued_capital_cents: i64,
pub risk_cap_bps: u32,
pub approved_by_did: String,
pub valued_at_unix: u32,
}Expand description
Stage 6 — Valuation record.
Fields§
§id: String§project_id: String§submission_id: String§acceptance_id: String§valued_effort_cents: i64§valued_expense_cents: i64§valued_capital_cents: i64§risk_cap_bps: u32§approved_by_did: String§valued_at_unix: u32Implementations§
Source§impl Valuation
impl Valuation
Sourcepub const fn total_valued_cents(&self) -> i64
pub const fn total_valued_cents(&self) -> i64
Total valued obligation in integer minor units (cents) using banker’s rounding on capital return.
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<'de> Deserialize<'de> for Valuation
impl<'de> Deserialize<'de> for Valuation
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 Valuation
impl StructuralPartialEq for Valuation
Auto Trait Implementations§
impl Freeze for Valuation
impl RefUnwindSafe for Valuation
impl Send for Valuation
impl Sync for Valuation
impl Unpin for Valuation
impl UnsafeUnpin for Valuation
impl UnwindSafe for Valuation
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