pub struct ItemAttributesContainer { /* private fields */ }Implementations§
Source§impl ItemAttributesContainer
impl ItemAttributesContainer
pub fn new() -> Self
pub fn get_attributes_types(&self) -> HashSet<ItemAttributesType>
pub fn add_component(&mut self, component: ItemAttributes)
pub fn with_bait(self, level: u64) -> Self
pub fn with_purchasable(self, cost: u32) -> Self
pub fn with_rod(self, level: u64) -> Self
Trait Implementations§
Source§impl Clone for ItemAttributesContainer
impl Clone for ItemAttributesContainer
Source§fn clone(&self) -> ItemAttributesContainer
fn clone(&self) -> ItemAttributesContainer
Returns a duplicate of the value. Read more
1.0.0 · 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 ItemAttributesContainer
impl Debug for ItemAttributesContainer
Source§impl Default for ItemAttributesContainer
impl Default for ItemAttributesContainer
Source§fn default() -> ItemAttributesContainer
fn default() -> ItemAttributesContainer
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ItemAttributesContainer
impl<'de> Deserialize<'de> for ItemAttributesContainer
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
Source§impl ItemAttributesContainerInterface for ItemAttributesContainer
impl ItemAttributesContainerInterface for ItemAttributesContainer
fn get_attributes(&self) -> &HashMap<ItemAttributesType, ItemAttributes>
fn get_bait_attributes(&self) -> Option<&BaitAttributes>
fn get_purchasable_attributes(&self) -> Option<&PurchasableAttributes>
fn get_rod_attributes(&self) -> Option<&RodAttributes>
fn is_bait(&self) -> bool
fn is_purchasable(&self) -> bool
fn is_rod(&self) -> bool
fn get_bait_level(&self) -> Option<u64>
fn get_cost(&self) -> Option<u32>
fn get_rod_level(&self) -> Option<u64>
Source§impl PartialEq for ItemAttributesContainer
impl PartialEq for ItemAttributesContainer
Source§impl Serialize for ItemAttributesContainer
impl Serialize for ItemAttributesContainer
impl StructuralPartialEq for ItemAttributesContainer
Auto Trait Implementations§
impl Freeze for ItemAttributesContainer
impl RefUnwindSafe for ItemAttributesContainer
impl Send for ItemAttributesContainer
impl Sync for ItemAttributesContainer
impl Unpin for ItemAttributesContainer
impl UnwindSafe for ItemAttributesContainer
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoSql for T
impl<T> IntoSql for T
Source§fn into_sql<T>(self) -> Self::Expression
fn into_sql<T>(self) -> Self::Expression
Convert
self to an expression for Diesel’s query builder. Read moreSource§fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
fn as_sql<'a, T>(&'a self) -> <&'a Self as AsExpression<T>>::Expression
Convert
&self to an expression for Diesel’s query builder. Read more