pub struct EntityPatch {
pub name: Option<String>,
pub description: Option<Option<String>>,
pub properties: Option<BTreeMap<String, PropertyValue>>,
pub tags: Option<Vec<String>>,
}Expand description
Entity fields to mutate; absent means unchanged and Some(None) clears description.
Fields§
§name: Option<String>§description: Option<Option<String>>§properties: Option<BTreeMap<String, PropertyValue>>Trait Implementations§
Source§impl Clone for EntityPatch
impl Clone for EntityPatch
Source§fn clone(&self) -> EntityPatch
fn clone(&self) -> EntityPatch
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 EntityPatch
impl Debug for EntityPatch
Source§impl<'de> Deserialize<'de> for EntityPatch
impl<'de> Deserialize<'de> for EntityPatch
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 PartialEq for EntityPatch
impl PartialEq for EntityPatch
Source§impl Serialize for EntityPatch
impl Serialize for EntityPatch
impl StructuralPartialEq for EntityPatch
Auto Trait Implementations§
impl Freeze for EntityPatch
impl RefUnwindSafe for EntityPatch
impl Send for EntityPatch
impl Sync for EntityPatch
impl Unpin for EntityPatch
impl UnsafeUnpin for EntityPatch
impl UnwindSafe for EntityPatch
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