pub struct RequestAndAgreement {
pub id: String,
pub project_id: String,
pub contributor_did: String,
pub authorised_by_did: Option<String>,
pub authority: AgreementAuthority,
pub compensation_class: CompensationClass,
pub max_authorised_effort_minutes: u32,
pub max_authorised_expense_cents: i64,
pub rate_cents_per_hour: i64,
pub created_at_unix: u32,
}Expand description
Stage 1 — Request & Agreement record.
Fields§
§id: String§project_id: String§contributor_did: String§compensation_class: CompensationClass§rate_cents_per_hour: i64§created_at_unix: u32Implementations§
Source§impl RequestAndAgreement
impl RequestAndAgreement
Sourcepub const fn is_commissioned_guarantee(&self) -> bool
pub const fn is_commissioned_guarantee(&self) -> bool
True when the agreement was commissioned with guaranteed payment for authorised effort/expense.
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 RequestAndAgreement
impl Clone for RequestAndAgreement
Source§impl Debug for RequestAndAgreement
impl Debug for RequestAndAgreement
Source§impl<'de> Deserialize<'de> for RequestAndAgreement
impl<'de> Deserialize<'de> for RequestAndAgreement
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 RequestAndAgreement
Source§impl PartialEq for RequestAndAgreement
impl PartialEq for RequestAndAgreement
Source§impl Serialize for RequestAndAgreement
impl Serialize for RequestAndAgreement
impl StructuralPartialEq for RequestAndAgreement
Auto Trait Implementations§
impl Freeze for RequestAndAgreement
impl RefUnwindSafe for RequestAndAgreement
impl Send for RequestAndAgreement
impl Sync for RequestAndAgreement
impl Unpin for RequestAndAgreement
impl UnsafeUnpin for RequestAndAgreement
impl UnwindSafe for RequestAndAgreement
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