pub struct EntityPatch {
pub name: Option<String>,
pub description: Option<Option<String>>,
pub properties: Option<BTreeMap<String, PropertyValue>>,
pub tags: Option<Vec<String>>,
pub entity_type: Option<Option<String>>,
pub aliases: Option<Vec<EntityAlias>>,
}Expand description
Entity fields to mutate; absent means unchanged and Some(None) clears
a nullable field (ADR-014 tri-state, applied to description and
entity_type).
aliases is the entity’s whole alias set after the update, every origin
included, as tags are the whole tag list: the apply writes exactly that set
with the origins given. Without it the apply leaves the aliases as they are,
and refuses a rename onto a name the entity holds as an alias, since
dropping that alias would be a change no preimage records.
Fields§
§name: Option<String>§description: Option<Option<String>>§properties: Option<BTreeMap<String, PropertyValue>>§entity_type: Option<Option<String>>§aliases: Option<Vec<EntityAlias>>Trait Implementations§
Source§impl Clone for EntityPatch
impl Clone for EntityPatch
Source§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 Forget for EntityPatch
impl Freeze for EntityPatchwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
*const LeafNode<String, PropertyValue> is !null: Freeze,
PhantomData<(Owned, LeafOrInternal)>: Freeze,
PhantomData<Box<(String, PropertyValue)>>: Freeze,
PhantomData<String>: Freeze,
PhantomData<EntityAlias>: Freeze,
impl Move for EntityPatch
impl RefUnwindSafe for EntityPatch
impl Send for EntityPatchwhere
RawVecInner: Send,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Send,
BoxRaw<(String, PropertyValue)>: Send,
impl Sync for EntityPatchwhere
RawVecInner: Sync,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Sync,
BoxRaw<(String, PropertyValue)>: Sync,
impl Unpin for EntityPatch
impl UnsafeUnpin for EntityPatchwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
*const LeafNode<String, PropertyValue> is !null: UnsafeUnpin,
PhantomData<(Owned, LeafOrInternal)>: UnsafeUnpin,
PhantomData<Box<(String, PropertyValue)>>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<EntityAlias>: UnsafeUnpin,
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