pub struct EntityCreateFields {
pub entity_kind: EntityKind,
pub entity_type: Option<String>,
pub name: String,
pub description: Option<String>,
pub properties: BTreeMap<String, PropertyValue>,
pub tags: Vec<String>,
pub key: Option<String>,
pub aliases: Vec<String>,
}Expand description
Fields staged for a new entity.
Fields§
§entity_kind: EntityKind§entity_type: Option<String>§name: String§description: Option<String>§properties: BTreeMap<String, PropertyValue>§key: Option<String>Caller key under entity_kind, claimed when the create lands
(ADR-221 section 1). Omitted from the wire when absent.
aliases: Vec<String>Caller aliases, stored with the caller origin; one equal to name
is not stored (ADR-221 section 2). Omitted from the wire when empty.
Trait Implementations§
Source§impl Clone for EntityCreateFields
impl Clone for EntityCreateFields
Source§impl Debug for EntityCreateFields
impl Debug for EntityCreateFields
Source§impl<'de> Deserialize<'de> for EntityCreateFields
impl<'de> Deserialize<'de> for EntityCreateFields
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 EntityCreateFields
impl PartialEq for EntityCreateFields
Source§impl Serialize for EntityCreateFields
impl Serialize for EntityCreateFields
impl StructuralPartialEq for EntityCreateFields
Auto Trait Implementations§
impl Forget for EntityCreateFields
impl Freeze for EntityCreateFieldswhere
*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,
impl Move for EntityCreateFields
impl RefUnwindSafe for EntityCreateFields
impl Send for EntityCreateFieldswhere
RawVecInner: Send,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Send,
BoxRaw<(String, PropertyValue)>: Send,
impl Sync for EntityCreateFieldswhere
RawVecInner: Sync,
NodeRef<Owned, String, PropertyValue, LeafOrInternal>: Sync,
BoxRaw<(String, PropertyValue)>: Sync,
impl Unpin for EntityCreateFields
impl UnsafeUnpin for EntityCreateFieldswhere
*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,
impl UnwindSafe for EntityCreateFields
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