pub struct Contract {
pub id: String,
pub faction_symbol: String,
pub type: Type,
pub terms: ContractTerms,
pub accepted: bool,
pub fulfilled: bool,
pub expiration: String,
pub deadline_to_accept: Option<String>,
}Expand description
Contract details.
Fields§
§id: StringID of the contract.
faction_symbol: StringThe symbol of the faction that this contract is for.
type: TypeType of contract.
terms: ContractTerms§accepted: boolWhether the contract has been accepted by the agent
fulfilled: boolWhether the contract has been fulfilled
expiration: StringDeprecated in favor of deadlineToAccept
deadline_to_accept: Option<String>The time at which the contract is no longer available to be accepted
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Contract
impl<'de> Deserialize<'de> for Contract
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 StructuralPartialEq for Contract
Auto Trait Implementations§
impl Freeze for Contract
impl RefUnwindSafe for Contract
impl Send for Contract
impl Sync for Contract
impl Unpin for Contract
impl UnwindSafe for Contract
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