pub struct FundOrder {
pub repo_id: u64,
pub issue: u64,
pub amount: u64,
pub mode: u8,
pub work_s: i64,
pub seq: u32,
pub opts: Opts,
pub wf_repo: [u8; 32],
pub wf_sha: [u8; 40],
pub private_scope: Option<[u8; 32]>,
}Expand description
An order to fund. amount is what the payees receive (the fee comes on top); work_s is how long the order
stays open before it can be refunded; wf_repo and wf_sha pin the workflows whose signed run can pay it.
A PRIVATE order: opts with F_PRIVATE and salted, private_scope set, repo_id and issue 0, and the
terms passed to fund_order_wallet are the 32-byte terms hash instead of the JSON.
Fields§
§repo_id: u64§issue: u64§amount: u64§mode: u8§work_s: i64§seq: u32§opts: Opts§wf_repo: [u8; 32]§wf_sha: [u8; 40]§private_scope: Option<[u8; 32]>Implementations§
Trait Implementations§
impl Copy for FundOrder
impl Eq for FundOrder
impl StructuralPartialEq for FundOrder
Auto Trait Implementations§
impl Freeze for FundOrder
impl RefUnwindSafe for FundOrder
impl Send for FundOrder
impl Sync for FundOrder
impl Unpin for FundOrder
impl UnsafeUnpin for FundOrder
impl UnwindSafe for FundOrder
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