pub struct Offer {
pub item: String,
pub name: String,
pub price_label: Option<String>,
pub price_ref: String,
pub world_id: String,
}Expand description
What’s on the counter — everything the purchase confirm dialog shows and
everything the wire call needs. Built from the behavior’s commerce.buy
action plus the placement’s data block via offer_from.
Fields§
§item: StringThe item being bought, as a StructuredId string (“CCSSNNNN”).
name: StringDisplay name (from placement data.name, falling back to the item id).
price_label: Option<String>The world’s displayed price (“250 gold”), informative only — the
server resolves the authoritative charge from price_ref.
price_ref: StringThe price-catalog key the server resolves the charge from.
world_id: StringThe world the stall stands in (cat-45 world id).
Trait Implementations§
impl StructuralPartialEq for Offer
Auto Trait Implementations§
impl Freeze for Offer
impl RefUnwindSafe for Offer
impl Send for Offer
impl Sync for Offer
impl Unpin for Offer
impl UnsafeUnpin for Offer
impl UnwindSafe for Offer
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