pub struct ItemPatchAst {
pub name: Option<String>,
pub desc: Option<String>,
pub text: Option<String>,
pub movability: Option<MovabilityAst>,
pub container_state: Option<ContainerStateAst>,
pub remove_container_state: bool,
pub add_abilities: Vec<ItemAbilityAst>,
pub remove_abilities: Vec<ItemAbilityAst>,
}Expand description
Data patch applied to an item when executing a modify item action.
Fields§
§name: Option<String>§desc: Option<String>§text: Option<String>§movability: Option<MovabilityAst>§container_state: Option<ContainerStateAst>§remove_container_state: bool§add_abilities: Vec<ItemAbilityAst>§remove_abilities: Vec<ItemAbilityAst>Trait Implementations§
Source§impl Clone for ItemPatchAst
impl Clone for ItemPatchAst
Source§fn clone(&self) -> ItemPatchAst
fn clone(&self) -> ItemPatchAst
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 ItemPatchAst
impl Debug for ItemPatchAst
Source§impl Default for ItemPatchAst
impl Default for ItemPatchAst
Source§fn default() -> ItemPatchAst
fn default() -> ItemPatchAst
Returns the “default value” for a type. Read more
Source§impl PartialEq for ItemPatchAst
impl PartialEq for ItemPatchAst
impl StructuralPartialEq for ItemPatchAst
Auto Trait Implementations§
impl Freeze for ItemPatchAst
impl RefUnwindSafe for ItemPatchAst
impl Send for ItemPatchAst
impl Sync for ItemPatchAst
impl Unpin for ItemPatchAst
impl UnwindSafe for ItemPatchAst
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