Struct ItemCost
#[non_exhaustive]pub struct ItemCost {
pub stack: ItemStack,
}Expand description
An item payment, with an optional exact component predicate.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.stack: ItemStackItem and minimum count required for this payment.
Implementations§
Trait Implementations§
impl StructuralPartialEq for ItemCost
Auto Trait Implementations§
impl Freeze for ItemCost
impl RefUnwindSafe for ItemCost
impl Send for ItemCost
impl Sync for ItemCost
impl Unpin for ItemCost
impl UnsafeUnpin for ItemCost
impl UnwindSafe for ItemCost
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