pub struct ContractPayment {
pub on_accepted: i32,
pub on_fulfilled: i32,
}Expand description
Payments for the contract.
Fields§
§on_accepted: i32The amount of credits received up front for accepting the contract.
on_fulfilled: i32The amount of credits received when the contract is fulfilled.
Implementations§
Source§impl ContractPayment
impl ContractPayment
Sourcepub fn new(on_accepted: i32, on_fulfilled: i32) -> ContractPayment
pub fn new(on_accepted: i32, on_fulfilled: i32) -> ContractPayment
Create value with optional fields set to None.
Trait Implementations§
Source§impl Clone for ContractPayment
impl Clone for ContractPayment
Source§fn clone(&self) -> ContractPayment
fn clone(&self) -> ContractPayment
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContractPayment
impl Debug for ContractPayment
Source§impl<'de> Deserialize<'de> for ContractPayment
impl<'de> Deserialize<'de> for ContractPayment
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
Source§impl PartialEq for ContractPayment
impl PartialEq for ContractPayment
Source§impl Serialize for ContractPayment
impl Serialize for ContractPayment
impl StructuralPartialEq for ContractPayment
Auto Trait Implementations§
impl Freeze for ContractPayment
impl RefUnwindSafe for ContractPayment
impl Send for ContractPayment
impl Sync for ContractPayment
impl Unpin for ContractPayment
impl UnwindSafe for ContractPayment
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