pub struct TradeTemplate {
pub boat: usize,
pub merchants: Vec<Merchant>,
pub rows: Vec<TradeRow>,
pub categories: Vec<u32>,
pub labels: Vec<(String, String)>,
pub sprites: Option<String>,
pub strings: Option<String>,
}Expand description
A resolved TradeDescription.
Fields§
§boat: usizeThe boat template.
merchants: Vec<Merchant>The merchants.
rows: Vec<TradeRow>The rows of the trade window.
categories: Vec<u32>The categories’ flags.
labels: Vec<(String, String)>The categories’ icon and name keys (the trade window’s), in the description’s sprite sheet and string table.
sprites: Option<String>The sprite sheet of the icons.
strings: Option<String>The string table of the names.
Trait Implementations§
Source§impl Clone for TradeTemplate
impl Clone for TradeTemplate
Source§fn clone(&self) -> TradeTemplate
fn clone(&self) -> TradeTemplate
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TradeTemplate
impl Debug for TradeTemplate
Source§impl Default for TradeTemplate
impl Default for TradeTemplate
Source§fn default() -> TradeTemplate
fn default() -> TradeTemplate
Returns the “default value” for a type. Read more
Source§impl PartialEq for TradeTemplate
impl PartialEq for TradeTemplate
impl StructuralPartialEq for TradeTemplate
Auto Trait Implementations§
impl Freeze for TradeTemplate
impl RefUnwindSafe for TradeTemplate
impl Send for TradeTemplate
impl Sync for TradeTemplate
impl Unpin for TradeTemplate
impl UnsafeUnpin for TradeTemplate
impl UnwindSafe for TradeTemplate
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