Struct TradeWithVillagerEvent
pub struct TradeWithVillagerEvent<'a> {
pub merchant: u32,
pub kind: &'a str,
pub offer: &'a mut MerchantOffer,
}Expand description
What Hooks::trade_with_villager is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§merchant: u32§kind: &'a str§offer: &'a mut MerchantOfferAuto Trait Implementations§
impl<'a> !UnwindSafe for TradeWithVillagerEvent<'a>
impl<'a> Freeze for TradeWithVillagerEvent<'a>
impl<'a> RefUnwindSafe for TradeWithVillagerEvent<'a>
impl<'a> Send for TradeWithVillagerEvent<'a>
impl<'a> Sync for TradeWithVillagerEvent<'a>
impl<'a> Unpin for TradeWithVillagerEvent<'a>
impl<'a> UnsafeUnpin for TradeWithVillagerEvent<'a>
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