pub struct ItemCatalogEntryView {
pub template_id: String,
pub display_name: String,
pub category: String,
pub seed_for: Option<String>,
}Expand description
Compact catalog row for client pickers (not a full item def).
Fields§
§template_id: String§display_name: String§category: String§seed_for: Option<String>When set, this template is a farm seed for the named crop.
Implementations§
Source§impl ItemCatalogEntryView
impl ItemCatalogEntryView
pub fn is_harvest_node(&self) -> bool
Sourcepub fn is_depositable_stack(&self) -> bool
pub fn is_depositable_stack(&self) -> bool
World harvest-node templates cannot exist as deposit/inventory stacks.
pub fn is_farm_seed(&self) -> bool
Trait Implementations§
Source§impl Clone for ItemCatalogEntryView
impl Clone for ItemCatalogEntryView
Source§fn clone(&self) -> ItemCatalogEntryView
fn clone(&self) -> ItemCatalogEntryView
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 ItemCatalogEntryView
impl Debug for ItemCatalogEntryView
Source§impl<'de> Deserialize<'de> for ItemCatalogEntryView
impl<'de> Deserialize<'de> for ItemCatalogEntryView
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 ItemCatalogEntryView
Source§impl PartialEq for ItemCatalogEntryView
impl PartialEq for ItemCatalogEntryView
Source§impl Serialize for ItemCatalogEntryView
impl Serialize for ItemCatalogEntryView
impl StructuralPartialEq for ItemCatalogEntryView
Auto Trait Implementations§
impl Freeze for ItemCatalogEntryView
impl RefUnwindSafe for ItemCatalogEntryView
impl Send for ItemCatalogEntryView
impl Sync for ItemCatalogEntryView
impl Unpin for ItemCatalogEntryView
impl UnsafeUnpin for ItemCatalogEntryView
impl UnwindSafe for ItemCatalogEntryView
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