pub struct ContractItem {
pub is_included: bool,
pub is_singleton: bool,
pub quantity: i64,
pub raw_quantity: Option<i64>,
pub record_id: i64,
pub type_id: i64,
}Expand description
An item of a contract.
Fields§
§is_included: boolWhether the item is offered (true) or requested (false).
is_singleton: boolWhether the item is a singleton (assembled).
quantity: i64Quantity of the item.
raw_quantity: Option<i64>Raw quantity, used for blueprints and damaged items.
record_id: i64ID of the record.
type_id: i64Type ID of the item.
Trait Implementations§
Source§impl Clone for ContractItem
impl Clone for ContractItem
Source§impl Debug for ContractItem
impl Debug for ContractItem
Source§impl<'de> Deserialize<'de> for ContractItem
impl<'de> Deserialize<'de> for ContractItem
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 ContractItem
Source§impl PartialEq for ContractItem
impl PartialEq for ContractItem
Source§impl Serialize for ContractItem
impl Serialize for ContractItem
impl StructuralPartialEq for ContractItem
Auto Trait Implementations§
impl Freeze for ContractItem
impl RefUnwindSafe for ContractItem
impl Send for ContractItem
impl Sync for ContractItem
impl Unpin for ContractItem
impl UnsafeUnpin for ContractItem
impl UnwindSafe for ContractItem
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.