pub struct EntityPreimage {
pub name: Option<String>,
pub description: Option<Option<String>>,
pub properties: Option<BTreeMap<String, PropertyValue>>,
pub tags: Option<Vec<String>>,
}Expand description
Prior value of exactly the fields an UpdateOp’s patch touches,
captured at stage time. Mirrors EntityPatch’s field shape one-to-one:
a populated preimage field means “the patch touches this field, and this
was its value before the patch”; an absent preimage field means “the
patch leaves this field unchanged.” UpdateOp’s custom Deserialize
enforces that this field set exactly equals EntityPatch’s touched-field
set.
Fields§
§name: Option<String>§description: Option<Option<String>>§properties: Option<BTreeMap<String, PropertyValue>>Trait Implementations§
Source§impl Clone for EntityPreimage
impl Clone for EntityPreimage
Source§fn clone(&self) -> EntityPreimage
fn clone(&self) -> EntityPreimage
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 EntityPreimage
impl Debug for EntityPreimage
Source§impl<'de> Deserialize<'de> for EntityPreimage
impl<'de> Deserialize<'de> for EntityPreimage
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 EntityPreimage
impl PartialEq for EntityPreimage
Source§impl Serialize for EntityPreimage
impl Serialize for EntityPreimage
impl StructuralPartialEq for EntityPreimage
Auto Trait Implementations§
impl Freeze for EntityPreimage
impl RefUnwindSafe for EntityPreimage
impl Send for EntityPreimage
impl Sync for EntityPreimage
impl Unpin for EntityPreimage
impl UnsafeUnpin for EntityPreimage
impl UnwindSafe for EntityPreimage
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