pub struct ContractTerms {
pub deadline: String,
pub payment: ContractPayment,
pub deliver: Option<Vec<ContractDeliverGood>>,
}Expand description
The terms to fulfill the contract.
Fields§
§deadline: StringThe deadline for the contract.
payment: ContractPayment§deliver: Option<Vec<ContractDeliverGood>>The cargo that needs to be delivered to fulfill the contract.
Implementations§
Source§impl ContractTerms
impl ContractTerms
Sourcepub fn new(deadline: String, payment: ContractPayment) -> ContractTerms
pub fn new(deadline: String, payment: ContractPayment) -> ContractTerms
Create value with optional fields set to None.
Trait Implementations§
Source§impl Clone for ContractTerms
impl Clone for ContractTerms
Source§fn clone(&self) -> ContractTerms
fn clone(&self) -> ContractTerms
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 ContractTerms
impl Debug for ContractTerms
Source§impl<'de> Deserialize<'de> for ContractTerms
impl<'de> Deserialize<'de> for ContractTerms
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 ContractTerms
impl PartialEq for ContractTerms
Source§impl Serialize for ContractTerms
impl Serialize for ContractTerms
impl StructuralPartialEq for ContractTerms
Auto Trait Implementations§
impl Freeze for ContractTerms
impl RefUnwindSafe for ContractTerms
impl Send for ContractTerms
impl Sync for ContractTerms
impl Unpin for ContractTerms
impl UnwindSafe for ContractTerms
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