|
@@ -16,12 +16,6 @@ pub enum ParametrizedPropertyValue<T: Trait> {
|
|
|
InternalEntityVec(Vec<ParameterizedEntity<T>>),
|
|
|
}
|
|
|
|
|
|
-impl<T: Trait> core::fmt::Debug for ParametrizedPropertyValue<T> {
|
|
|
- fn fmt(&self, formatter: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
|
|
- write!(formatter, "ParametrizedPropertyValue {:?}", self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
/// Parametrized entity
|
|
|
#[derive(Encode, Decode, Eq, PartialEq, Clone)]
|
|
|
pub enum ParameterizedEntity<T: Trait> {
|
|
@@ -29,12 +23,6 @@ pub enum ParameterizedEntity<T: Trait> {
|
|
|
ExistingEntity(T::EntityId),
|
|
|
}
|
|
|
|
|
|
-impl<T: Trait> core::fmt::Debug for ParameterizedEntity<T> {
|
|
|
- fn fmt(&self, formatter: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
|
|
- write!(formatter, "ParameterizedEntity {:?}", self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
/// Parametrized class property value
|
|
|
#[derive(Encode, Decode, Eq, PartialEq, Clone)]
|
|
|
pub struct ParametrizedClassPropertyValue<T: Trait> {
|
|
@@ -45,12 +33,6 @@ pub struct ParametrizedClassPropertyValue<T: Trait> {
|
|
|
pub value: ParametrizedPropertyValue<T>,
|
|
|
}
|
|
|
|
|
|
-impl<T: Trait> core::fmt::Debug for ParametrizedClassPropertyValue<T> {
|
|
|
- fn fmt(&self, formatter: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
|
|
- write!(formatter, "ParametrizedClassPropertyValue {:?}", self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
/// Operation, that represents `Entity` creation
|
|
|
#[derive(Encode, Decode, Eq, PartialEq, Clone)]
|
|
|
pub struct CreateEntityOperation<T: Trait> {
|
|
@@ -58,12 +40,6 @@ pub struct CreateEntityOperation<T: Trait> {
|
|
|
pub class_id: T::ClassId,
|
|
|
}
|
|
|
|
|
|
-impl<T: Trait> core::fmt::Debug for CreateEntityOperation<T> {
|
|
|
- fn fmt(&self, formatter: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
|
|
- write!(formatter, "CreateEntityOperation {:?}", self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
/// Operation, that represents property values update
|
|
|
#[derive(Encode, Decode, Eq, PartialEq, Clone)]
|
|
|
pub struct UpdatePropertyValuesOperation<T: Trait> {
|
|
@@ -73,12 +49,6 @@ pub struct UpdatePropertyValuesOperation<T: Trait> {
|
|
|
pub new_parametrized_property_values: Vec<ParametrizedClassPropertyValue<T>>,
|
|
|
}
|
|
|
|
|
|
-impl<T: Trait> core::fmt::Debug for UpdatePropertyValuesOperation<T> {
|
|
|
- fn fmt(&self, formatter: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
|
|
- write!(formatter, "UpdatePropertyValuesOperation {:?}", self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
/// Operation, that represents adding `Entity` `Schema` support
|
|
|
#[derive(Encode, Decode, Eq, PartialEq, Clone)]
|
|
|
pub struct AddSchemaSupportToEntityOperation<T: Trait> {
|
|
@@ -90,12 +60,6 @@ pub struct AddSchemaSupportToEntityOperation<T: Trait> {
|
|
|
pub parametrized_property_values: Vec<ParametrizedClassPropertyValue<T>>,
|
|
|
}
|
|
|
|
|
|
-impl<T: Trait> core::fmt::Debug for AddSchemaSupportToEntityOperation<T> {
|
|
|
- fn fmt(&self, formatter: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
|
|
|
- write!(formatter, "AddSchemaSupportToEntityOperation {:?}", self)
|
|
|
- }
|
|
|
-}
|
|
|
-
|
|
|
/// The type of operation performed
|
|
|
#[derive(Encode, Decode, Eq, PartialEq, Clone)]
|
|
|
pub enum OperationType<T: Trait> {
|